summaryrefslogtreecommitdiff
path: root/check.py
diff options
context:
space:
mode:
Diffstat (limited to 'check.py')
-rwxr-xr-xcheck.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/check.py b/check.py
index 6d2d49ff8..f9ef1145b 100755
--- a/check.py
+++ b/check.py
@@ -303,7 +303,7 @@ for t in spec_tests:
# compare all the outputs to the expected output
check_expected(actual, os.path.join(options.binaryen_test, 'spec', 'expected-output', os.path.basename(wast) + '.log'))
-if NODEJS:
+if MOZJS:
print '\n[ checking binaryen.js testcases... ]\n'
for s in sorted(os.listdir(os.path.join(options.binaryen_test, 'binaryen.js'))):
@@ -313,8 +313,8 @@ if NODEJS:
f.write(open(os.path.join(options.binaryen_bin, 'binaryen.js')).read())
f.write(open(os.path.join(options.binaryen_test, 'binaryen.js', s)).read())
f.close()
- cmd = [NODEJS, 'a.js']
- out = run_command(cmd)
+ cmd = [MOZJS, 'a.js']
+ out = run_command(cmd, stderr=subprocess.STDOUT)
expected = open(os.path.join(options.binaryen_test, 'binaryen.js', s + '.txt')).read()
if expected not in out:
fail(out, expected)