Closed
Bug 1288827
Opened 8 years ago
Closed 8 years ago
Improve mach command for running mochitest from a tests.zip
Categories
(Testing :: Mochitest, defect)
Testing
Mochitest
Tracking
(firefox50 fixed)
RESOLVED
FIXED
mozilla50
Tracking | Status | |
---|---|---|
firefox50 | --- | fixed |
People
(Reporter: ahal, Assigned: ahal)
References
Details
Attachments
(1 file)
Currently mochitest requires --appname to be passed in, though recently some code landed to find appname automagically. It also doesn't properly normalize test paths if developers use an unexpected relative url.
Assignee | ||
Comment 1•8 years ago
|
||
Because it is now possible for options.app to get set after 'parse_args' time, we need to make sure the argument validation happens later. To accomplish this we pass in the parser instance to 'run_test_harness' and do parser.validate there. This unfortunately requires some minor uses of global to accomplish easily due to how mach handles parsers. Review commit: https://reviewboard.mozilla.org/r/67226/diff/#index_header See other reviews: https://reviewboard.mozilla.org/r/67226/
Attachment #8774825 -
Flags: review?(armenzg)
Updated•8 years ago
|
Attachment #8774825 -
Flags: review?(armenzg) → review+
Comment 2•8 years ago
|
||
Comment on attachment 8774825 [details] Bug 1288827 - Allow running mochitest from test-package without specifying --appname, https://reviewboard.mozilla.org/r/67226/#review64450 You have to what you have to do! It's fine to use a global.
Pushed by ahalberstadt@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/6dcb52d270c7 Allow running mochitest from test-package without specifying --appname, r=armenzg
Comment 4•8 years ago
|
||
sorry had to back this out for failures like https://treeherder.mozilla.org/logviewer.html#?job_id=1095224&repo=autoland
Flags: needinfo?(ahalberstadt)
Backout by cbook@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/d6a7c3753a06 Backed out changeset 6dcb52d270c7 for breaking mochitests
Assignee | ||
Comment 6•8 years ago
|
||
Comment on attachment 8774825 [details] Bug 1288827 - Allow running mochitest from test-package without specifying --appname, Review request updated; see interdiff: https://reviewboard.mozilla.org/r/67226/diff/1-2/
Assignee | ||
Comment 7•8 years ago
|
||
Sorry about that, the above patch should fix it. I could have sworn I had those changes already but must have messed up a split or forgot to amend or something. I'll wait for the try run there to complete before landing again.
Flags: needinfo?(ahalberstadt)
Assignee | ||
Comment 8•8 years ago
|
||
Here's the try run from mozreview: https://treeherder.mozilla.org/#/jobs?repo=try&revision=ba58516f6cc0e7c3eca952bb0e2603e53f51162d
Pushed by ahalberstadt@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/52f229a7749e Allow running mochitest from test-package without specifying --appname, r=armenzg
Comment 10•8 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/52f229a7749e
Status: ASSIGNED → RESOLVED
Closed: 8 years ago
status-firefox50:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla50
You need to log in
before you can comment on or make changes to this bug.
Description
•