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:
Serge Gautherie 2009-04-29 00:46:15 +02:00
parent 5e65fbeecb
commit 4f5fd9057d

View File

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