Skip to content

Commit 67fe60f

Browse files
committed
print out failing js engine in test runner
1 parent b9ea40e commit 67fe60f

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

tests/runner.py

+6-3
Original file line numberDiff line numberDiff line change
@@ -466,10 +466,13 @@ def do_run(self, src, expected_output, args=[], output_nicerizer=None, output_pr
466466
js_engines = filter(lambda engine: engine not in self.banned_js_engines, js_engines)
467467
if len(js_engines) == 0: return self.skip('No JS engine present to run this test with. Check %s and the paths therein.' % EM_CONFIG)
468468
for engine in js_engines:
469-
#print engine
470469
js_output = self.run_generated_code(engine, filename + '.o.js', args, output_nicerizer=output_nicerizer, assert_returncode=assert_returncode)
471-
self.assertContained(expected_output, js_output.replace('\r\n', '\n'))
472-
self.assertNotContained('ERROR', js_output)
470+
try:
471+
self.assertContained(expected_output, js_output.replace('\r\n', '\n'))
472+
self.assertNotContained('ERROR', js_output)
473+
except Exception, e:
474+
print '(test did not pass in JS engine: %s)' % engine
475+
raise e
473476

474477
#shutil.rmtree(dirname) # TODO: leave no trace in memory. But for now nice for debugging
475478

0 commit comments

Comments
 (0)