Skip to content

Commit 109c283

Browse files
committed
handle skipped tests; they are not stale
1 parent 5244605 commit 109c283

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

scripts/test/wasm2js.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,15 @@ def check_for_stale_files():
4242
all_tests = basic_tests + spec_tests + wasm2js_tests
4343
all_tests = [os.path.basename(os.path.splitext(t)[0]) for t in all_tests]
4444

45+
assert_test_prefixes = [t.split('.')[0] for t in assert_tests]
46+
skipped_test_prefixes = [t.split('.')[0] for t in shared.SPEC_TESTSUITE_TESTS_TO_SKIP]
47+
4548
all_files = os.listdir(shared.get_test_dir('wasm2js'))
4649
for f in all_files:
4750
prefix = f.split('.')[0]
48-
if prefix in [t.split('.')[0] for t in assert_tests]:
51+
if prefix in assert_test_prefixes:
52+
continue
53+
if prefix in skipped_test_prefixes:
4954
continue
5055
if prefix not in all_tests:
5156
shared.fail_with_error(f'orphan test output: {f}')

0 commit comments

Comments
 (0)