diff options
author | Alon Zakai <alonzakai@gmail.com> | 2013-07-03 21:32:21 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2013-07-03 21:32:21 -0700 |
commit | c1ea8dc5d56c2c39eec37c4a3ed862bd55bb29cb (patch) | |
tree | b48ebe57a9c19f7513d46965366024f56e68190c | |
parent | 455fc9b35af07e43c54036fa9a2693a32338c682 (diff) |
fix test_static_link for the case where spidermonkey shell is not in JS_ENGINES
-rwxr-xr-x | tests/runner.py | 7 |
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 |