On 06/05/15 10:24 AM, Gijs Kruitbosch wrote:
Do I need to pass flavor? What would happen if I do:

./mach mochitest path/to/dir/with/only/mochitest-browser/things

-- would that "just work" ?

Yep that should just work. Fyi, |mach mochitest| already exists, so you can do this now if you want. Without --flavor it will detect all flavors in the subdir you specify (or topsrcdir if none specified) and run each flavor one after the other. The -f is only needed if more than one flavor of test exists in the directory and you want to restrict the run to a single flavor.

I mean, I thought that the original plan was for everybody to just use:

./mach test path/to/test

except it doesn't support half as many options as the actual test suites
(--start-at, --end-at, --jsdebugger, to name a few), so (for me
personally...) it's near enough useless in practice.

That's still the plan, but I don't think we'll ever be able to completely remove the suite specific mach commands because as you mentioned the command lines for the harnesses are just too different. In this case however, we can remove the mochitest-<flavor> specific commands without losing any arguments.

-Andrew

_______________________________________________
dev-platform mailing list
dev-platform@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-platform

Reply via email to