Bug 808419 - remoteautomation.py's waitForFinish() should print to the log when maxTime is reached; r=jmaher
authorEd Morley <emorley@mozilla.com>
Mon, 05 Nov 2012 13:03:55 +0000
changeset 112299 60c78a559a84441c175506792d9f977a8f7a9113
parent 112298 267a4eb4b2368cc685847f7207ca9c843c84864d
child 112300 35ba50a6a97e3df90392394bc177fa6e2941ce90
child 112308 358c9830d1661d523ae7f9e0bdf080a15218f2cf
push id17508
push useremorley@mozilla.com
push dateMon, 05 Nov 2012 13:04:19 +0000
treeherdermozilla-inbound@60c78a559a84 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjmaher
bugs808419
milestone19.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 808419 - remoteautomation.py's waitForFinish() should print to the log when maxTime is reached; r=jmaher
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):
         remoteCrashDir = self._remoteProfile + '/minidumps/'
         if self._devicemanager.dirExists(remoteCrashDir):
             dumpDir = tempfile.mkdtemp()