diff --git a/scripts/test/shared.py b/scripts/test/shared.py index 441545db308..8fdf2375cf8 100644 --- a/scripts/test/shared.py +++ b/scripts/test/shared.py @@ -386,6 +386,7 @@ def get_tests(test_dir, extensions=[], recursive=False): tests += glob.glob(os.path.join(test_dir, star + ext), recursive=True) if options.test_name_filter: tests = fnmatch.filter(tests, options.test_name_filter) + tests = [item for item in tests if os.path.isfile(item)] return sorted(tests) diff --git a/scripts/test/wasm2js.py b/scripts/test/wasm2js.py index ea299e4ed78..374e932978f 100644 --- a/scripts/test/wasm2js.py +++ b/scripts/test/wasm2js.py @@ -41,6 +41,8 @@ def check_for_stale_files(): all_files = os.listdir(shared.get_test_dir('wasm2js')) for f in all_files: + if f in assert_tests: + continue prefix = f.split('.')[0] if prefix not in all_tests: shared.fail_with_error('orphan test output: %s' % f)