Permalink
Browse files

Bug 848937 - add try block around robocop uninstallation, regression …

…caused by bug 842257, r=mcote.
  • Loading branch information...
1 parent c85dc2a commit ad330489735e10242ce6d4a81fdf52a4381d7bca @bclary bclary committed Mar 7, 2013
Showing with 7 additions and 1 deletion.
  1. +7 −1 tests/runtestsremote.py
View
@@ -15,6 +15,7 @@
from mozautolog import RESTfulAutologTestGroup
import re
import time
+from mozdevice import DMError
import newlogparser
@@ -353,7 +354,12 @@ def runtest(self, test_parameters):
self.dm.pushFile(os.path.join(test_parameters['cache_build_dir'],
'robocop.apk'),
robocop_apk_path)
- self.dm.uninstallApp('org.mozilla.roboexample.test')
+ try:
+ self.dm.uninstallApp('org.mozilla.roboexample.test')
+ except DMError:
+ self.logger.info('runtestsremote.py:runtest: Exception running test: %s' %
+ traceback.format_exc())
+
self.dm.installApp(robocop_apk_path)
self.dm.removeFile(robocop_apk_path)

0 comments on commit ad33048

Please sign in to comment.