Closed
Bug 1366129
Opened 7 years ago
Closed 7 years ago
When android 'mach mochitest' is interrupted, log file may be left behind
Categories
(Firefox for Android Graveyard :: Testing, defect)
Firefox for Android Graveyard
Testing
Tracking
(firefox55 fixed)
RESOLVED
FIXED
Firefox 55
Tracking | Status | |
---|---|---|
firefox55 | --- | fixed |
People
(Reporter: gbrown, Assigned: gbrown)
References
Details
Attachments
(1 file)
992 bytes,
patch
|
jmaher
:
review+
|
Details | Diff | Splinter Review |
With an android build, 'mach mochitest' generates a log file on device which is pulled and presented on the host. If the mach session is interrupted (ctrl-c, killed, etc), the remote log file is left behind, and it looks like it may be displayed on the host the next time 'mach mochitest' is run. That can be confusing and could be one explanation for bug 1364381.
Assignee | ||
Comment 1•7 years ago
|
||
We already have reasonable code for cleaning up, but it can be interrupted. To handle that case, I think it's best to delete the log file before starting a test run. I noticed a similar vulnerability for the remote profile, so let's delete that too. https://treeherder.mozilla.org/#/jobs?repo=try&revision=6b2816fcbc9d4e10e487e7a3a87aa356c4f2dd5b
Attachment #8870574 -
Flags: review?(jmaher)
Comment 2•7 years ago
|
||
Comment on attachment 8870574 [details] [diff] [review] delete log file, profile on initialization Review of attachment 8870574 [details] [diff] [review]: ----------------------------------------------------------------- good find.
Attachment #8870574 -
Flags: review?(jmaher) → review+
Pushed by gbrown@mozilla.com: https://hg.mozilla.org/integration/mozilla-inbound/rev/7d126d7d281d Improve cleanup of android mochitest environment before starting tests; r=jmaher
Comment 4•7 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/7d126d7d281d
Status: NEW → RESOLVED
Closed: 7 years ago
status-firefox55:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → Firefox 55
Updated•3 years ago
|
Product: Firefox for Android → Firefox for Android Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•