summaryrefslogtreecommitdiff
path: root/auto_update_tests.py
diff options
context:
space:
mode:
authorSam Clegg <sbc@chromium.org>2017-06-09 20:28:31 -0700
committerGitHub <noreply@github.com>2017-06-09 20:28:31 -0700
commite82a9c4602a42c674155594e73595488bc5b9720 (patch)
treeccdcbb99594046a4ba275c22cc27b3e72aca8966 /auto_update_tests.py
parentdf58435d385ddf49c501eafd4e324ebe0caa8cbb (diff)
parent314a97687fc0acc7d5b9fa9d58447dc54cf09288 (diff)
downloadbinaryen-e82a9c4602a42c674155594e73595488bc5b9720.tar.gz
binaryen-e82a9c4602a42c674155594e73595488bc5b9720.tar.bz2
binaryen-e82a9c4602a42c674155594e73595488bc5b9720.zip
Merge pull request #1038 from WebAssembly/fix_ctor_eval_path
Fix path to wasm-ctor-eval binary used in test code
Diffstat (limited to 'auto_update_tests.py')
-rwxr-xr-xauto_update_tests.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/auto_update_tests.py b/auto_update_tests.py
index c6d376fa0..76c7b4cf9 100755
--- a/auto_update_tests.py
+++ b/auto_update_tests.py
@@ -4,7 +4,7 @@ import os, sys, subprocess, difflib
from scripts.test.support import run_command, split_wast
from scripts.test.shared import (
- ASM2WASM, S2WASM, WASM_SHELL, WASM_OPT, WASM_AS, WASM_DIS)
+ ASM2WASM, S2WASM, WASM_SHELL, WASM_OPT, WASM_AS, WASM_DIS, WASM_CTOR_EVAL)
print '[ processing and updating testcases... ]\n'
@@ -242,7 +242,7 @@ for t in os.listdir(os.path.join('test', 'ctor-eval')):
print '..', t
t = os.path.join('test', 'ctor-eval', t)
ctors = open(t + '.ctors').read().strip()
- cmd = [os.path.join('bin', 'wasm-ctor-eval'), t, '-o', 'a.wast', '-S', '--ctors', ctors]
+ cmd = WASM_CTOR_EVAL + [t, '-o', 'a.wast', '-S', '--ctors', ctors]
stdout = run_command(cmd)
actual = open('a.wast').read()
out = t + '.out'