Bug 1256984 - Indicate whether tests ran in e10s mode in the mochitest-* summary; r=mconley

This commit is contained in:
Ehsan Akhgari 2016-03-17 17:17:10 -04:00
parent d7c2644b0c
commit 8590248100
3 changed files with 10 additions and 1 deletions

View File

@ -382,10 +382,12 @@ Tester.prototype = {
this.structuredLogger.info("TEST-START | Shutdown");
if (this.tests.length) {
let e10sMode = gMultiProcessBrowser ? "e10s" : "non-e10s";
this.structuredLogger.info("Browser Chrome Test Summary");
this.structuredLogger.info("Passed: " + passCount);
this.structuredLogger.info("Failed: " + failCount);
this.structuredLogger.info("Todo: " + todoCount);
this.structuredLogger.info("Mode: " + e10sMode);
} else {
this.structuredLogger.testEnd("browser-test.js",
"FAIL",

View File

@ -2175,6 +2175,8 @@ class MochitestDesktop(MochitestBase):
if result == -1:
break
e10s_mode = "e10s" if options.e10s else "non-e10s"
# printing total number of tests
if options.browserChrome:
print "TEST-INFO | checking window state"
@ -2182,13 +2184,15 @@ class MochitestDesktop(MochitestBase):
print "\tPassed: %s" % self.countpass
print "\tFailed: %s" % self.countfail
print "\tTodo: %s" % self.counttodo
print "\tMode: %s" % e10s_mode
print "*** End BrowserChrome Test Results ***"
else:
print "0 INFO TEST-START | Shutdown"
print "1 INFO Passed: %s" % self.countpass
print "2 INFO Failed: %s" % self.countfail
print "3 INFO Todo: %s" % self.counttodo
print "4 INFO SimpleTest FINISHED"
print "4 INFO Mode: %s" % e10s_mode
print "5 INFO SimpleTest FINISHED"
return result

View File

@ -449,10 +449,13 @@ TestRunner.runNextTest = function() {
SpecialPowers.unregisterProcessCrashObservers();
let e10sMode = SpecialPowers.isMainProcess() ? "non-e10s" : "e10s";
TestRunner.structuredLogger.info("TEST-START | Shutdown");
TestRunner.structuredLogger.info("Passed: " + passCount);
TestRunner.structuredLogger.info("Failed: " + failCount);
TestRunner.structuredLogger.info("Todo: " + todoCount);
TestRunner.structuredLogger.info("Mode: " + e10sMode);
TestRunner.structuredLogger.info("Slowest: " + TestRunner.slowestTestTime + 'ms - ' + TestRunner.slowestTestURL);
// If we are looping, don't send this cause it closes the log file