Skip to content

Commit aaeb70b

Browse files
committed
tests/run-tests: Fix handling of --list-tests wrt skipped tests.
"skip <test>" message could leak before.
1 parent 8d11fc0 commit aaeb70b

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

tests/run-tests

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -376,15 +376,16 @@ def run_tests(pyb, tests, args, base_path="."):
376376
skip_it |= skip_const and is_const
377377
skip_it |= skip_revops and test_name.startswith("class_reverse_op")
378378

379+
if args.list_tests:
380+
if not skip_it:
381+
print(test_file)
382+
continue
383+
379384
if skip_it:
380385
print("skip ", test_file)
381386
skipped_tests.append(test_name)
382387
continue
383388

384-
if args.list_tests:
385-
print(test_file)
386-
continue
387-
388389
# get expected output
389390
test_file_expected = test_file + '.exp'
390391
if os.path.isfile(test_file_expected):

0 commit comments

Comments
 (0)