Bug 1517169 - Ensure Android remote test log is deleted before launching test app; r=bc
authorGeoff Brown <gbrown@mozilla.com>
Wed, 02 Jan 2019 09:50:36 -0700
changeset 509399 ba0acece312ad9e35ed4f1d2c2cdabfb3212ba06
parent 509398 0112129c8f4d00ca3d55716189668e573d0aabba
child 509400 6c851da6160c531f5783f5b76a06b014d30ddd5f
push id10547
push userffxbld-merge
push dateMon, 21 Jan 2019 13:03:58 +0000
treeherdermozilla-beta@24ec1916bffe [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbc
bugs1517169
milestone66.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 1517169 - Ensure Android remote test log is deleted before launching test app; r=bc
build/mobile/remoteautomation.py
--- a/build/mobile/remoteautomation.py
+++ b/build/mobile/remoteautomation.py
@@ -39,16 +39,19 @@ class RemoteAutomation(Automation):
     def runApp(self, testURL, env, app, profileDir, extraArgs,
                utilityPath=None, xrePath=None, debuggerInfo=None, symbolsPath=None,
                timeout=-1, maxTime=None, e10s=True, **kwargs):
         """
         Run the app, log the duration it took to execute, return the status code.
         Kills the app if it runs for longer than |maxTime| seconds, or outputs nothing
         for |timeout| seconds.
         """
+        if self.device.is_file(self.remoteLog):
+            self.device.rm(self.remoteLog, root=True)
+            self.log.info("remoteautomation.py | runApp deleted %s" % self.remoteLog)
 
         if utilityPath is None:
             utilityPath = self.DIST_BIN
         if xrePath is None:
             xrePath = self.DIST_BIN
         if timeout == -1:
             timeout = self.DEFAULT_TIMEOUT
         self.utilityPath = utilityPath