Bug 629266 - org.mozilla.fennec is left running after dm.updateApp(). r=ctalbert, a=NPOTB

This commit is contained in:
Joel Maher 2011-02-23 14:38:56 -05:00
parent dfd04bc1e6
commit cadb3b3032
2 changed files with 9 additions and 0 deletions

View File

@ -362,6 +362,10 @@ def main():
if os.path.exists(args[0]):
manifest = "http://" + str(options.remoteWebServer) + ":" + str(options.httpPort) + "/" + args[0]
procName = options.app.split('/')[-1]
if (dm.processExist(procName)):
dm.killProcess(procName)
#an example manifest name to use on the cli
# manifest = "http://" + options.remoteWebServer + "/reftests/layout/reftests/reftest-sanity/reftest.list"
reftest.runTests(manifest, options)

View File

@ -294,6 +294,11 @@ def main():
auto.setRemoteLog(options.remoteLogFile)
auto.setServerInfo(options.webServer, options.httpPort, options.sslPort)
procName = options.app.split('/')[-1]
if (dm.processExist(procName)):
dm.killProcess(procName)
sys.exit(mochitest.runTests(options))
if __name__ == "__main__":