Closed Bug 848937 Opened 12 years ago Closed 12 years ago

Attempting to uninstall robocop should not throw when it is not already installed.

Categories

(Testing Graveyard :: Autophone, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: bc, Unassigned)

References

Details

(Keywords: regression)

Attachments

(1 file)

Attached patch patchSplinter Review
In bug 842257 I placed the exception handling higher up the call chain. See https://github.com/mozilla/autophone/commit/0ec36fd66dfc9c37aacfaaa161c5a2285fd638c3#L0L345 This caused a regression where on a device where robocop had not been previously installed, the uninstallApp would raise an exception that terminated the test run.
Attachment #722447 - Flags: review?(mcote)
Comment on attachment 722447 [details] [diff] [review] patch Review of attachment 722447 [details] [diff] [review]: ----------------------------------------------------------------- ::: tests/runtestsremote.py @@ +354,5 @@ > 'robocop.apk'), > robocop_apk_path) > + try: > + self.dm.uninstallApp('org.mozilla.roboexample.test') > + except: Yuck to blanket excepts; we should just catch DMError here.
Attachment #722447 - Flags: review?(mcote) → review-
Comment on attachment 722447 [details] [diff] [review] patch Review of attachment 722447 [details] [diff] [review]: ----------------------------------------------------------------- Actually I'll r+ this just because I don't need to see the fix. :) But please catch just DMError.
Attachment #722447 - Flags: review- → review+
https://github.com/mozilla/autophone/commit/ad330489735e10242ce6d4a81fdf52a4381d7bca I had to merge and it appears the history is a bit horked. Not worth making worse imo.
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Product: Testing → Testing Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: