Bug 851842 - Make jit-tests log output more suited to TBPL bug suggestions; r=terrence

This commit is contained in:
Ed Morley 2013-03-18 21:13:47 +00:00
Родитель 1a564394b1
Коммит 19d94654ef
1 изменённых файлов: 6 добавлений и 2 удалений

Просмотреть файл

@ -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