Skip to content
Snippets Groups Projects
Commit aaeb70b7 authored by Paul Sokolovsky's avatar Paul Sokolovsky
Browse files

tests/run-tests: Fix handling of --list-tests wrt skipped tests.

"skip <test>" message could leak before.
parent 8d11fc0b
No related branches found
No related tags found
No related merge requests found
......@@ -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):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment