diff options
author | Alon Zakai <alonzakai@gmail.com> | 2011-09-25 10:32:57 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2011-09-25 10:32:57 -0700 |
commit | c11a766477cf0da6bf3ac9dca66d6fc935f355be (patch) | |
tree | aefb4d8941f3dbc35f3d8b2c548fe8d1897abad9 | |
parent | f0ba90f7e5e42a5da600eee43aaf6630e92565f0 (diff) |
show errors on empty output from emscripten in test runner
-rw-r--r-- | tests/runner.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/tests/runner.py b/tests/runner.py index 996b08c5..c86997d6 100644 --- a/tests/runner.py +++ b/tests/runner.py @@ -192,11 +192,10 @@ class RunnerCore(unittest.TestCase): except OSError: os.chdir(self.get_dir()) # ensure the current working directory is valid compiler_output = timeout_run(Popen([EMSCRIPTEN, filename + ('.o.ll' if append_ext else ''), '-o', filename + '.o.js'] + settings + extra_args, stdout=PIPE, stderr=STDOUT), TIMEOUT, 'Compiling') - #print compiler_output # Detect compilation crashes and errors if compiler_output is not None and 'Traceback' in compiler_output and 'in test_' in compiler_output: print compiler_output; assert 0 - assert os.path.exists(filename + '.o.js'), 'Emscripten failed to generate .js: ' + str(compiler_output) + assert os.path.exists(filename + '.o.js') and len(open(filename + '.o.js', 'r').read()) > 0, 'Emscripten failed to generate .js: ' + str(compiler_output) if output_processor is not None: output_processor(open(filename + '.o.js').read()) |