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)

defect
Not set
normal

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.
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)
Attachment #8774825 - Flags: review?(armenzg) → review+
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
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
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/
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)
Pushed by ahalberstadt@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/52f229a7749e
Allow running mochitest from test-package without specifying --appname, r=armenzg
https://hg.mozilla.org/mozilla-central/rev/52f229a7749e
Status: ASSIGNED → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla50
Depends on: 1292660
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: