Closed Bug 1211252 Opened 9 years ago Closed 9 years ago

Autophone - Unit Test not (un)installing robocop.apk

Categories

(Testing Graveyard :: Autophone, defect)

defect
Not set
normal

Tracking

(firefox44 affected)

RESOLVED FIXED
Tracking Status
firefox44 --- affected

People

(Reporter: bc, Assigned: bc)

References

Details

Attachments

(1 file)

Starting with Bug 1200343 the rca test began failing with:

TEST-UNEXPECTED-FAIL | testAdobeFlash | Exception caught - java.lang.NoSuchMethodError: org.mozilla.gecko.GeckoEvent.createPreferencesGetEvent

This was not a regression due to the check in but was apparently due to an out of date version of robocop.apk. I uninstalled it manually on the devices, but then began to get exceptions when running rca which said 

0 ERROR runApp() exited with code 1
Unable to retrieve log file (/storage/sdcard0/tests/logs/mochitest.log) from remote device
1 ERROR Automation Error: Exception caught while running tests
Traceback (most recent call last):
  File "mochitest/runrobocop.py", line 454, in runSingleTest
    log_result = self.parseLocalLog()
  File "mochitest/runrobocop.py", line 270, in parseLocalLog
    with open(self.localLog) as currentLog:
IOError: [Errno 2] No such file or directory: 'robocop.log'

This was resolved by manually installing robocop.apk but there must be a bug where robocop.apk is not installed or uninstalled properly by tests/runtestsremote.py.
Check that robocop.apk is installed before attempting to uninstall it, and check that the test name begins with robocoptest instead of testing for equality.
Attachment #8672639 - Flags: review?(jmaher)
Comment on attachment 8672639 [details] [diff] [review]
bug-1211252-robocop-installation-v1.patch

Review of attachment 8672639 [details] [diff] [review]:
-----------------------------------------------------------------

this is nice- good idea to be safe!
Attachment #8672639 - Flags: review?(jmaher) → review+
Blocks: 1214110
https://github.com/mozilla/autophone/commit/d3674e56cdbd2903ba69f10bf0f04f33ed439840
Status: ASSIGNED → RESOLVED
Closed: 9 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: