1
Description: Write test duration to the JUnit results when the test fails
2
Author: Chris Coulson <chris.coulson@Canonical.com>
5
Index: firefox-trunk-23.0~a1~hg20130508r131030/testing/xpcshell/runxpcshelltests.py
6
===================================================================
7
--- firefox-trunk-23.0~a1~hg20130508r131030.orig/testing/xpcshell/runxpcshelltests.py 2013-05-08 20:30:27.000000000 +0100
8
+++ firefox-trunk-23.0~a1~hg20130508r131030/testing/xpcshell/runxpcshelltests.py 2013-05-08 22:55:24.350859999 +0100
11
and not re.search("^child: CHILD-TEST-COMPLETED",
12
stdout, re.MULTILINE)))
14
+ xunit_result["time"] = now - startTime
16
if result != expected:
17
failureType = "TEST-UNEXPECTED-%s" % ("FAIL" if expected else "PASS")
23
timeTaken = (now - startTime) * 1000
24
- xunit_result["time"] = now - startTime
25
self.log.info("TEST-%s | %s | test passed (time: %.3fms)" % ("PASS" if expected else "KNOWN-FAIL", name, timeTaken))