Bug 656829: Treat unexpected pass in xpcshell subtests as immediate-failure instead of immediate-pass. r=ted

This commit is contained in:
Daniel Holbert
2011-05-19 17:50:57 -07:00
parent 09b9f8c677
commit 07421acd92

View File

@@ -506,7 +506,7 @@ class XPCShellTests(object):
print "<<<<<<<"
if (self.getReturnCode(proc) != 0) or \
(stdout and re.search("^((parent|child): )?TEST-UNEXPECTED-FAIL", stdout, re.MULTILINE)) or \
(stdout and re.search("^((parent|child): )?TEST-UNEXPECTED-", stdout, re.MULTILINE)) or \
(stdout and re.search(": SyntaxError:", stdout, re.MULTILINE)):
print "TEST-UNEXPECTED-FAIL | %s | test failed (with xpcshell return code: %d), see following log:" % (test, self.getReturnCode(proc))
print_stdout(stdout)