use only existing js engines in test runner

This commit is contained in:
Alon Zakai 2011-10-30 00:26:27 -07:00
Родитель ce31f61312
Коммит 31a6579468
1 изменённых файлов: 2 добавлений и 0 удалений

Просмотреть файл

@ -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: