From 19d94654ef8dee462bdb97c4b956e296c3cfa44b Mon Sep 17 00:00:00 2001 From: Ed Morley Date: Mon, 18 Mar 2013 21:13:47 +0000 Subject: [PATCH] Bug 851842 - Make jit-tests log output more suited to TBPL bug suggestions; r=terrence --- js/src/tests/lib/jittests.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/js/src/tests/lib/jittests.py b/js/src/tests/lib/jittests.py index 202448ffd07a..ae41f635eef8 100755 --- a/js/src/tests/lib/jittests.py +++ b/js/src/tests/lib/jittests.py @@ -297,11 +297,15 @@ def check_output(out, err, rc, test): return True def print_tinderbox(label, test, message=None): + # Output test failures in a TBPL parsable format, eg: + # TEST-PASS | /foo/bar/baz.js | --no-jm + # TEST-UNEXPECTED-FAIL | /foo/bar/baz.js | --no-ion: Assertion failure: ... + # TEST-UNEXPECTED-FAIL | jit_test.py: Test execution interrupted by user if (test != None): jitflags = " ".join(test.jitflags) - result = "%s | jit_test.py %-15s| %s" % (label, jitflags, test.path) + result = "%s | %s | %s" % (label, test.path, jitflags) else: - result = "%s | jit_test.py " % label + result = "%s | jit_test.py" % label if message: result += ": " + message