Closed Bug 914327 Opened 11 years ago Closed 11 years ago

B2G mach target should handle test_path better

Categories

(Testing :: Mochitest, defect)

All
Gonk (Firefox OS)
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
mozilla26

People

(Reporter: ahal, Assigned: ahal)

Details

Attachments

(1 file)

Right now the mochitest mach target for b2g just passes in the value of test_path to --test-path in the mochitest harness. This means you need to be very specific about the value you use, making running individual tests or directories unintuitive.

The desktop version of the mochitest mach command does some checks so absolute paths, directories, etc.. can also be used. The b2g command should follow suit.
I wanted to move some of the shared logic into the constructor, but the MozbuildObject._spawn() method requires the MochitestRunner class to have the same signature, and it was only one or two lines anyway so decided against a helper method.
Attachment #802567 - Flags: review?(jgriffin)
Comment on attachment 802567 [details] [diff] [review]
mochitest_commands

Review of attachment 802567 [details] [diff] [review]:
-----------------------------------------------------------------

Nice, thanks.
Attachment #802567 - Flags: review?(jgriffin) → review+
https://hg.mozilla.org/mozilla-central/rev/db0a833aee39
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla26
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: