Lines 24-48
Link Here
|
24 |
sys.path.insert(0, SCRIPT_DIR) |
24 |
sys.path.insert(0, SCRIPT_DIR) |
25 |
import automationutils |
25 |
import automationutils |
26 |
|
26 |
|
27 |
# -------------------------------------------------------------- |
|
|
28 |
# TODO: this is a hack for mozbase without virtualenv, remove with bug 849900 |
29 |
# |
30 |
here = os.path.dirname(__file__) |
31 |
mozbase = os.path.realpath(os.path.join(os.path.dirname(here), 'mozbase')) |
32 |
|
33 |
try: |
34 |
import mozcrash |
35 |
except: |
36 |
deps = ['mozcrash', |
37 |
'mozfile', |
38 |
'mozlog'] |
39 |
for dep in deps: |
40 |
module = os.path.join(mozbase, dep) |
41 |
if module not in sys.path: |
42 |
sys.path.append(module) |
43 |
import mozcrash |
44 |
# --------------------------------------------------------------- |
45 |
|
46 |
_DEFAULT_WEB_SERVER = "127.0.0.1" |
27 |
_DEFAULT_WEB_SERVER = "127.0.0.1" |
47 |
_DEFAULT_HTTP_PORT = 8888 |
28 |
_DEFAULT_HTTP_PORT = 8888 |
48 |
_DEFAULT_SSL_PORT = 4443 |
29 |
_DEFAULT_SSL_PORT = 4443 |
Lines 1161-1169
Link Here
|
1161 |
self.killPid(processPID) |
1142 |
self.killPid(processPID) |
1162 |
return foundZombie |
1143 |
return foundZombie |
1163 |
|
1144 |
|
1164 |
def checkForCrashes(self, profileDir, symbolsPath): |
|
|
1165 |
return mozcrash.check_for_crashes(os.path.join(profileDir, "minidumps"), symbolsPath, test_name=self.lastTestSeen) |
1166 |
|
1167 |
def runApp(self, testURL, env, app, profileDir, extraArgs, |
1145 |
def runApp(self, testURL, env, app, profileDir, extraArgs, |
1168 |
runSSLTunnel = False, utilityPath = None, |
1146 |
runSSLTunnel = False, utilityPath = None, |
1169 |
xrePath = None, certPath = None, |
1147 |
xrePath = None, certPath = None, |
Lines 1236-1246
Link Here
|
1236 |
# Do a final check for zombie child processes. |
1214 |
# Do a final check for zombie child processes. |
1237 |
zombieProcesses = self.checkForZombies(processLog) |
1215 |
zombieProcesses = self.checkForZombies(processLog) |
1238 |
|
1216 |
|
1239 |
crashed = self.checkForCrashes(profileDir, symbolsPath) |
|
|
1240 |
|
1241 |
if crashed or zombieProcesses: |
1242 |
status = 1 |
1243 |
|
1244 |
if os.path.exists(processLog): |
1217 |
if os.path.exists(processLog): |
1245 |
os.unlink(processLog) |
1218 |
os.unlink(processLog) |
1246 |
|
1219 |
|