Skip to content

Commit dd698f8

Browse files
authored
logging the crash properly when running test262-harness.py (#4472)
When running tests262 cases, the jerry program may exit with error code other than 1, that's means a crash or JERRY_ASSERT triggered and should be resolved, so dump the test name and stderr/stdout for tracking those crash in CI. related issue: #4463 JerryScript-DCO-1.0-Signed-off-by: Yonggang Luo [email protected]
1 parent 4bb9e2b commit dd698f8

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

tools/runners/test262-harness.py

+6
Original file line numberDiff line numberDiff line change
@@ -434,6 +434,12 @@ def __init__(self, exit_code, stdout, stderr, case):
434434
def report_outcome(self, long_format):
435435
name = self.case.get_name()
436436
mode = self.case.get_mode()
437+
438+
if self.exit_code != 0 and self.exit_code != 1:
439+
sys.stderr.write(u"===%s failed in %s with negative:%s===\n"
440+
% (name, mode, self.case.get_negative_type()))
441+
self.write_output(sys.stderr)
442+
437443
if self.has_unexpected_outcome():
438444
if self.case.is_negative():
439445
print("=== %s passed in %s, but was expected to fail ===" % (name, mode))

0 commit comments

Comments
 (0)