summaryrefslogtreecommitdiff
path: root/auto_update_tests.py
diff options
context:
space:
mode:
Diffstat (limited to 'auto_update_tests.py')
-rwxr-xr-xauto_update_tests.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/auto_update_tests.py b/auto_update_tests.py
index 6a3904569..8bb8362ae 100755
--- a/auto_update_tests.py
+++ b/auto_update_tests.py
@@ -252,10 +252,8 @@ def update_binaryen_js_tests():
print(basename)
f = open('a.js', 'w')
f.write(open(shared.BINARYEN_JS).read())
- if shared.NODEJS:
- f.write(support.node_test_glue())
test_src = open(s).read()
- f.write(test_src)
+ f.write(support.js_test_wrap().replace('%TEST%', test_src))
f.close()
if shared.MOZJS or node_has_wasm or 'WebAssembly.' not in test_src:
cmd = [shared.MOZJS or shared.NODEJS, 'a.js']