aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tests/runner.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/runner.py b/tests/runner.py
index 901adc8e..80cb10b5 100644
--- a/tests/runner.py
+++ b/tests/runner.py
@@ -236,6 +236,8 @@ if 'benchmark' not in str(sys.argv):
js_engines = [SPIDERMONKEY_ENGINE, V8_ENGINE]
if Settings.USE_TYPED_ARRAYS == 2:
js_engines = [SPIDERMONKEY_ENGINE] # when oh when will v8 support typed arrays in the console
+ js_engines = filter(lambda engine: os.path.exists(engine[0]), js_engines)
+ assert len(js_engines) > 0, 'No JS engine present to run this test with. Check ~/.emscripten and the paths therein.'
for engine in js_engines:
js_output = self.run_generated_code(engine, filename + '.o.js', args)
if output_nicerizer is not None: