Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Bug 827474 - Tegras which ran on https://hg.mozilla.org/try/rev/cd5bc…

…37f35ac have a stray fennec process still running ("talosError: 'Found processes still running: [NNNN] org.mozilla.fennec. Please close them before running talos.'"). r=jmaher
  • Loading branch information...
commit 03808c01b183a1ef67724a73a6aecdfc8c9c4e88 1 parent 765e954
@Callek Callek authored
Showing with 9 additions and 5 deletions.
  1. +9 −5 sut_tools/cleanup.py
View
14 sut_tools/cleanup.py
@@ -47,18 +47,22 @@ def cleanupDevice(device=None, dm=None):
packages = dm._runCmds([ { 'cmd': 'exec pm list packages' }])
for package in packages.split('\n'):
+ if not package.strip().startswith("package:"):
+ continue #unknown entry
+ package_basename = package.strip()[8:]
for proc in processNames:
- if package.strip() == "package:%s" % proc:
- log.info("Uninstalling %s..." % proc)
+ if package_basename == "%s" % proc or \
+ package_basename.startswith("%s_" % proc):
+ log.info("Uninstalling %s..." % package_basename)
try:
if 'panda' in device:
- dm.uninstallApp(proc)
+ dm.uninstallApp(package_basename)
reboot_needed = True
else:
- dm.uninstallAppAndReboot(proc)
+ dm.uninstallAppAndReboot(package_basename)
waitForDevice(dm)
except devicemanager.DMError, err:
- setFlag(errorFile, "Remote Device Error: Unable to uninstall %s and reboot: %s" % (proc, err))
+ setFlag(errorFile, "Remote Device Error: Unable to uninstall %s and reboot: %s" % (package_basename, err))
return RETCODE_ERROR
if reboot_needed:
Please sign in to comment.
Something went wrong with that request. Please try again.