Closed Bug 1008492 Opened 11 years ago Closed 11 years ago

Update app killing code for Android

Categories

(Testing Graveyard :: Eideticker, defect)

x86_64
Linux
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: wlach, Assigned: wlach)

Details

Attachments

(1 file)

So we're still triggering the "app shouldn't be running" exception on Android with the LG device. We now auto-kill all processes with the name before a test is started, so we really shouldn't have this problem anymore. But this is out of our control, strictly speaking. I think we should try to kill the app more zealously before the test is run. And rename the exception description to reflect current realities.
After looking at the code, I could see one place where the problem might be occurring -- we're doing the check for the process just before the app killing code is engaged. Logically, we should be doing the check after the app killing code.
I think this makes more sense than before. I'm going to try running it in production and see what happens.
Attachment #8420467 - Flags: review?(gbrown)
Comment on attachment 8420467 [details] [diff] [review] Update app killing code on Android Review of attachment 8420467 [details] [diff] [review]: ----------------------------------------------------------------- ::: src/eideticker/eideticker/runtest.py @@ +150,5 @@ > + num_tries = 0 > + while device.processExist(appname): > + num_tries+=1 > + if num_tries > 5: > + raise Exception("Couldn't successfully kill process after 5 " I prefer "Could not kill process "+appname+" after 5 attempts"
Attachment #8420467 - Flags: review?(gbrown) → review+
Good idea, pushed with that change: https://github.com/mozilla/eideticker/commit/766a117b21d1bd5d0bb638fa9ab5c89c84f436c3 (In reply to Geoff Brown [:gbrown] (PTO May 14 - May 21) from comment #3) > Comment on attachment 8420467 [details] [diff] [review] > Update app killing code on Android > > Review of attachment 8420467 [details] [diff] [review]: > ----------------------------------------------------------------- > > ::: src/eideticker/eideticker/runtest.py > @@ +150,5 @@ > > + num_tries = 0 > > + while device.processExist(appname): > > + num_tries+=1 > > + if num_tries > 5: > > + raise Exception("Couldn't successfully kill process after 5 " > > I prefer "Could not kill process "+appname+" after 5 attempts"
Status: NEW → RESOLVED
Closed: 11 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: