mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-26 14:22:01 +00:00
Bug 489840 - runxpcshelltests.py should report non-zero return code explicitly; (Av1) Add xpcshell return code to test error message; r=ted.mielczarek
This commit is contained in:
parent
5e65fbeecb
commit
4f5fd9057d
@ -197,10 +197,10 @@ def runTests(xpcshell, testdirs=[], xrePath=None, testPath=None,
|
||||
return True
|
||||
|
||||
if proc.returncode != 0 or stdout.find("*** PASS") == -1:
|
||||
print """TEST-UNEXPECTED-FAIL | %s | test failed, see following log:
|
||||
print """TEST-UNEXPECTED-FAIL | %s | test failed (with xpcshell return code: %d), see following log:
|
||||
>>>>>>>
|
||||
%s
|
||||
<<<<<<<""" % (test, stdout)
|
||||
<<<<<<<""" % (test, proc.returncode, stdout)
|
||||
success = False
|
||||
else:
|
||||
print "TEST-PASS | %s | all tests passed" % test
|
||||
|
Loading…
Reference in New Issue
Block a user