summaryrefslogtreecommitdiff
path: root/scripts/test
diff options
context:
space:
mode:
authorSam Clegg <sbc@chromium.org>2019-08-26 12:37:31 -0700
committerGitHub <noreply@github.com>2019-08-26 12:37:31 -0700
commit84da536f584a11edd2c6d9d7d422e917df0e0155 (patch)
tree40ec841699756276aae0a183883c1433ed559e4a /scripts/test
parentc57f93c8919ab33574e5ce78f0044980ca33de76 (diff)
downloadbinaryen-84da536f584a11edd2c6d9d7d422e917df0e0155.tar.gz
binaryen-84da536f584a11edd2c6d9d7d422e917df0e0155.tar.bz2
binaryen-84da536f584a11edd2c6d9d7d422e917df0e0155.zip
Fix auto_update_tests.py after #2114 (#2306)
Diffstat (limited to 'scripts/test')
-rwxr-xr-xscripts/test/wasm2js.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/test/wasm2js.py b/scripts/test/wasm2js.py
index c1abaa8f9..2395778bd 100755
--- a/scripts/test/wasm2js.py
+++ b/scripts/test/wasm2js.py
@@ -173,8 +173,8 @@ def update_wasm2js_tests():
asserts = os.path.basename(wasm).replace('.wast.asserts', '.asserts.js')
traps = os.path.basename(wasm).replace('.wast.asserts', '.traps.js')
- asserts_expected_file = os.path.join('test', asserts)
- traps_expected_file = os.path.join('test', traps)
+ asserts_expected_file = os.path.join(options.binaryen_test, asserts)
+ traps_expected_file = os.path.join(options.binaryen_test, traps)
cmd = WASM2JS + [os.path.join(wasm2js_dir, wasm), '--allow-asserts']
out = run_command(cmd)