kripken/emscripten — Issue #109: Tests fail when one JS engine is missing
Author: infojunkie
Created: 2011-10-30 07:15:17+00:00
State: open

Using the latest head, I was unable to successfully run the tests. They all failed with the following exception:
```
Traceback (most recent call last):
File "tests/runner.py", line 272, in test_hello_world
File "tests/runner.py", line 240, in do_run
File "tests/runner.py", line 150, in run_generated_code
File "", line 78, in run_js
File "/usr/lib/python2.7/subprocess.py", line 672, in __init__
errread, errwrite)
File "/usr/lib/python2.7/subprocess.py", line 1213, in _execute_child
raise child_exception
OSError: [Errno 2] No such file or directory
```
I traced the problem to RunnerCore::run_generated_code being called with a JS engine that I haven't installed. Even though I removed its name from ~/.emscripten, this engine is still being invoked because the code in RunnerCore::do_run receives an empty js_engines parameter from the test calls. I temporarily fixed this by removing the offending JS engine from the array (path attached for illustration).