diff options
| author | Jeff Rade <[email protected]> | 2018-03-17 13:40:56 -0500 |
|---|---|---|
| committer | Jeff Rade <[email protected]> | 2018-03-17 13:42:31 -0500 |
| commit | b0fec8d6232d07dacf7b9f4fdf944a7a80992809 (patch) | |
| tree | 69a598d726adba48fda35334a6ea8a20781d1028 | |
| parent | Merge #12437: [Trivial] Simplify if-else blocks and more descriptive variable... (diff) | |
| download | discoin-b0fec8d6232d07dacf7b9f4fdf944a7a80992809.tar.xz discoin-b0fec8d6232d07dacf7b9f4fdf944a7a80992809.zip | |
Append scripts to new test_list array to fix bad assignment
| -rwxr-xr-x | test/functional/test_runner.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/functional/test_runner.py b/test/functional/test_runner.py index f5d160f21..673cdb506 100755 --- a/test/functional/test_runner.py +++ b/test/functional/test_runner.py @@ -236,11 +236,11 @@ def main(): sys.exit(0) # Build list of tests + test_list = [] if tests: # Individual tests have been specified. Run specified tests that exist # in the ALL_SCRIPTS list. Accept the name with or without .py extension. tests = [re.sub("\.py$", "", test) + ".py" for test in tests] - test_list = [] for test in tests: if test in ALL_SCRIPTS: test_list.append(test) @@ -248,10 +248,10 @@ def main(): print("{}WARNING!{} Test '{}' not found in full test list.".format(BOLD[1], BOLD[0], test)) elif args.extended: # Include extended tests - test_list = ALL_SCRIPTS + test_list += ALL_SCRIPTS else: # Run base tests only - test_list = BASE_SCRIPTS + test_list += BASE_SCRIPTS # Remove the test cases that the user has explicitly asked to exclude. if args.exclude: |