aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2013-07-03 21:32:21 -0700
committerAlon Zakai <alonzakai@gmail.com>2013-07-03 21:32:21 -0700
commitc1ea8dc5d56c2c39eec37c4a3ed862bd55bb29cb (patch)
treeb48ebe57a9c19f7513d46965366024f56e68190c
parent455fc9b35af07e43c54036fa9a2693a32338c682 (diff)
fix test_static_link for the case where spidermonkey shell is not in JS_ENGINES
-rwxr-xr-xtests/runner.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/tests/runner.py b/tests/runner.py
index 51745180..a7f1ea66 100755
--- a/tests/runner.py
+++ b/tests/runner.py
@@ -10629,9 +10629,10 @@ f.close()
Popen([PYTHON, EMCC] + main + ['-o', 'main.js', '-s', 'MAIN_MODULE=1', '-O2', '-s', 'DISABLE_GL_EMULATION=1'] + args).communicate()
Popen([PYTHON, EMLINK, 'main.js', 'side.js', 'together.js'], stdout=PIPE).communicate()
assert os.path.exists('together.js')
- out = run_js('together.js', engine=SPIDERMONKEY_ENGINE, stderr=PIPE, full_output=True)
- self.assertContained(expected, out)
- self.validate_asmjs(out)
+ for engine in JS_ENGINES:
+ out = run_js('together.js', engine=SPIDERMONKEY_ENGINE, stderr=PIPE, full_output=True)
+ self.assertContained(expected, out)
+ if engine == SPIDERMONKEY_ENGINE: self.validate_asmjs(out)
if first:
shutil.copyfile('together.js', 'first.js')
test(name + ' (reverse)', header, original_side, original_main, expected, args, suffix, False) # test reverse order