From 06cf08768ddbdb60c2920450ab746591388dbafc Mon Sep 17 00:00:00 2001 From: Heejin Ahn Date: Tue, 10 Mar 2026 08:57:39 +0000 Subject: [PATCH] Fix binary file matching in test_wasm_opt ```py binary = '.wasm' in t ``` can incorrectly also match this: ``` ~/binaryen.wasm_split/.... ``` --- scripts/test/wasm_opt.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/test/wasm_opt.py b/scripts/test/wasm_opt.py index d873e49640c..6e45d3bd6ac 100644 --- a/scripts/test/wasm_opt.py +++ b/scripts/test/wasm_opt.py @@ -50,7 +50,7 @@ def test_wasm_opt(): if ('translate-to-fuzz' in t or 'dwarf' in t) and \ shared.skip_if_on_windows('fuzz translation tests'): continue - binary = '.wasm' in t + binary = t.endswith('.wasm') base = os.path.basename(t).replace('.wast', '').replace('.wasm', '') passname = base passes_file = os.path.join(shared.get_test_dir('passes'), passname + '.passes')