Closed Bug 1133649 Opened 7 years ago Closed 7 years ago

[B2G] 'xpcshell-test' is not a testing option in mach command.


(Testing :: XPCShell Harness, defect, P1)

Gonk (Firefox OS)


(firefox39 fixed)

Tracking Status
firefox39 --- fixed


(Reporter: bevis, Assigned: aknow)



(1 file)

After typing './mach help' in $B2G_PATH in m-c branch, 
I can not find "xpcshell-test" as one of the testing options in mach command 
which was available few weeks ago.

Is this a bug or do we have to run xpcshell-test by other commands?
BTW, I am running xpcshell-test in emulator(ics) and got error as followed:
$ ./mach xpcshell-test
It looks like you are trying to run an unknown mach command: xpcshell-test

Did you want to run any of these commands instead: mochitest?

Run |mach help| to show a list of commands.
Hi Ted,

Are you the right person for help to check this problem?
Severity: normal → critical
Flags: needinfo?(ted)
Priority: -- → P1
In b2g's tools/, it set |require_conditions| to true. However, there is no specific |conditions| in |xpcshell-test| so the command is not registered when we run ./mach in b2g.

From testing/xpcshell/, the command |xpcshell-test| should be available in b2g or even android environment. I think we could add a condition that always return True.
Attachment #8572445 - Flags: review?(gps)
Assignee: nobody → szchen
Comment on attachment 8572445 [details] [diff] [review]
Add an always true condition for xpcshell-test

Review of attachment 8572445 [details] [diff] [review]:

I'm not a super big fan of this pattern. But it's a sufficient workaround.
Attachment #8572445 - Flags: review?(gps) → review+
Flags: needinfo?(ted)
Closed: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla39
You need to log in before you can comment on or make changes to this bug.