diff options
author | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2017-12-14 12:11:17 +0200 |
---|---|---|
committer | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2017-12-14 12:13:36 +0200 |
commit | aaeb70b7b7a670e3beb51fc2efa956d4de51a05a (patch) | |
tree | b63d14a5bad38ec71c2c425f81fae49571ae0254 | |
parent | 8d11fc0bc4c0b9d569a343a785bf079d6441eb16 (diff) |
tests/run-tests: Fix handling of --list-tests wrt skipped tests.
"skip <test>" message could leak before.
-rwxr-xr-x | tests/run-tests | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/tests/run-tests b/tests/run-tests index 35b609612..2330b7df0 100755 --- a/tests/run-tests +++ b/tests/run-tests @@ -376,15 +376,16 @@ def run_tests(pyb, tests, args, base_path="."): skip_it |= skip_const and is_const skip_it |= skip_revops and test_name.startswith("class_reverse_op") + if args.list_tests: + if not skip_it: + print(test_file) + continue + if skip_it: print("skip ", test_file) skipped_tests.append(test_name) continue - if args.list_tests: - print(test_file) - continue - # get expected output test_file_expected = test_file + '.exp' if os.path.isfile(test_file_expected): |