Skip to content

Commit 423abdd

Browse files
committed
logging the crash properly when running test262-harness.py
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: jerryscript-project#4463 JerryScript-DCO-1.0-Signed-off-by: Yonggang Luo [email protected]
1 parent 91baa17 commit 423abdd

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

tools/runners/test262-harness.py

+3
Original file line numberDiff line numberDiff line change
@@ -423,6 +423,9 @@ def __init__(self, exit_code, stdout, stderr, case):
423423
self.stdout = stdout
424424
self.stderr = stderr
425425
self.case = case
426+
if self.has_failed() and self.exit_code != 1:
427+
logging.warning("%s negative:%s exit_code:%d stdout:%s stderr:%s\n",
428+
case.name, case.is_negative(), exit_code, stdout, stderr)
426429

427430
def report_outcome(self, long_format):
428431
name = self.case.get_name()

0 commit comments

Comments
 (0)