Bug 808419 - remoteautomation.py's waitForFinish() should print to the log when maxTime is reached; r=jmaher a=test-only
authorEd Morley <emorley@mozilla.com>
Mon, 12 Nov 2012 09:49:26 +0000
changeset 109810 9cfebbf2973a753a0c9c149d916a23487ffacec6
parent 109809 f49b7d8ed734ece12a9a147210617402aace2abe
child 109811 5c9450a082aa1f8b2e6c10d1afa4a022e828cfe4
push id1688
push useremorley@mozilla.com
push dateMon, 12 Nov 2012 09:52:24 +0000
treeherdermozilla-beta@9cfebbf2973a [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjmaher, test-only
bugs808419
milestone17.0
Bug 808419 - remoteautomation.py's waitForFinish() should print to the log when maxTime is reached; r=jmaher a=test-only
build/mobile/remoteautomation.py
--- a/build/mobile/remoteautomation.py
+++ b/build/mobile/remoteautomation.py
@@ -68,16 +68,18 @@ class RemoteAutomation(Automation):
             or for maxTime elapse, in which case kill the process regardless.
         """
         # maxTime is used to override the default timeout, we should honor that
         status = proc.wait(timeout = maxTime)
         self.lastTestSeen = proc.getLastTestSeen
 
         if (status == 1 and self._devicemanager.processExist(proc.procName)):
             # Then we timed out, make sure Fennec is dead
+            print "TEST-UNEXPECTED-FAIL | %s | application ran for longer than " \
+                  "allowed maximum time of %d seconds" % (self.lastTestSeen, int(maxTime))
             proc.kill()
 
         return status
 
     def checkForCrashes(self, directory, symbolsPath):
         dumpDir = tempfile.mkdtemp()
         self._devicemanager.getDirectory(self._remoteProfile + '/minidumps/', dumpDir)
         automationutils.checkForCrashes(dumpDir, symbolsPath, self.lastTestSeen)