But 535564. Remove log file after all processes are closed. r=bsmedberg
authorJonathan Griffin <jgriffin@mozilla.com>
Tue, 22 Dec 2009 15:13:59 -0800
changeset 36576 921b0c508bc8
parent 36575 ebe278cda008
child 36577 ce295c1a1fe1
push id10872
push userjgriffin@mozilla.com
push date2009-12-22 23:14 +0000
treeherdermozilla-central@921b0c508bc8 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbsmedberg
bugs535564
milestone1.9.3a1pre
But 535564. Remove log file after all processes are closed. r=bsmedberg
build/automation.py.in
--- a/build/automation.py.in
+++ b/build/automation.py.in
@@ -676,23 +676,25 @@ def runApp(testURL, env, app, profileDir
     pidRE = re.compile(r'launched child process (\d+)$')
     processLogFD = open(processLog)
     for line in processLogFD:
       log.info(line.rstrip())
       m = pidRE.search(line)
       if m:
         processList.append(int(m.group(1)))
     processLogFD.close()
-    os.unlink(processLog)
 
     for processPID in processList:
       log.info("INFO | automation.py | Checking for orphan process with PID: %d", processPID)
       if isPidAlive(processPID):
         log.info("TEST-UNEXPECTED-FAIL | automation.py | child process %d still alive after shutdown", processPID)
         killPid(processPID)
 
   if checkForCrashes(os.path.join(profileDir, "minidumps"), symbolsPath):
     status = -1
 
+  if os.path.exists(processLog):
+    os.unlink(processLog)
+
   if IS_TEST_BUILD and runSSLTunnel:
     ssltunnelProcess.kill()
 
   return status