Closed
Bug 840712
Opened 11 years ago
Closed 11 years ago
deviceManagerSUT.py:killProcess should retry
Categories
(Testing :: Mozbase, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: bc, Assigned: bc)
Details
Attachments
(1 file)
1.03 KB,
patch
|
jmaher
:
review+
|
Details | Diff | Splinter Review |
devicemanagerSUT.killProcess will abort if it fails to kill the process. This is a problem since the inability to kill processes sometimes at least appears to be transient. I've seen this often in autophone. We should try to kill the process up to the limit devicemanagerSUT.retryLimit. I've tested this on autophone and it appears to work fine.
Attachment #713100 -
Flags: review?(jmaher)
Comment 1•11 years ago
|
||
Comment on attachment 713100 [details] [diff] [review] patch Review of attachment 713100 [details] [diff] [review]: ----------------------------------------------------------------- ::: mozdevice/mozdevice/devicemanagerSUT.py @@ +570,5 @@ > + except DMError, err: > + retries +=1 > + print ("WARNING: try %d of %d failed to kill %s" % > + (retries, self.retryLimit, appname)) > + print err there is a danger here of the 'err' text geting caught in the tbpl log parsing and reporting an error. I don't recall any bugs on file in recent times where we have had this in tegra/panda automation, so this might be ok for now.
Attachment #713100 -
Flags: review?(jmaher) → review+
Assignee | ||
Comment 2•11 years ago
|
||
(In reply to Joel Maher (:jmaher) from comment #1) > > there is a danger here of the 'err' text geting caught in the tbpl log > parsing and reporting an error. I don't recall any bugs on file in recent > times where we have had this in tegra/panda automation, so this might be ok > for now. The other code which prints err qualifies it with if self.debug >=4:, that might explain why you haven't seen it in production. I'll do that as well.
Assignee | ||
Comment 3•11 years ago
|
||
https://github.com/mozilla/mozbase/commit/7b9acf714ce7aa6611ae8df4b0bb751570347a14 with debug change.
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•