Skip to content

Commit

Permalink
logging the crash properly when running test262-harness.py
Browse files Browse the repository at this point in the history
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 luoyonggang@gmail.com
  • Loading branch information
lygstate committed Jan 15, 2021
1 parent 91baa17 commit 423abdd
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tools/runners/test262-harness.py
Original file line number Diff line number Diff line change
Expand Up @@ -423,6 +423,9 @@ def __init__(self, exit_code, stdout, stderr, case):
self.stdout = stdout
self.stderr = stderr
self.case = case
if self.has_failed() and self.exit_code != 1:
logging.warning("%s negative:%s exit_code:%d stdout:%s stderr:%s\n",
case.name, case.is_negative(), exit_code, stdout, stderr)

def report_outcome(self, long_format):
name = self.case.get_name()
Expand Down

0 comments on commit 423abdd

Please sign in to comment.