diff --git a/build/automation.py.in b/build/automation.py.in index ceebbac4fcb5..7fa1192f24c6 100644 --- a/build/automation.py.in +++ b/build/automation.py.in @@ -681,7 +681,6 @@ def runApp(testURL, env, app, profileDir, extraArgs, 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) @@ -692,6 +691,9 @@ def runApp(testURL, env, app, profileDir, extraArgs, 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()