Closed Bug 818475 Opened 7 years ago Closed 7 years ago

When running a single test, mach doesn't return the test status as exit code

Categories

(Testing :: XPCShell Harness, defect)

x86_64
Linux
defect
Not set

Tracking

(Not tracked)

RESOLVED FIXED
mozilla20

People

(Reporter: glandium, Assigned: gps)

Details

(Whiteboard: [mach])

Attachments

(1 file)

If running a failing test with mach, the error status is lost:
$ ./mach xpcshell-test some-test.js
$ echo $?
0

Arguably, it should also have an exit code when any test fails in a series of tests.
Easy peasy.
Assignee: nobody → gps
Status: NEW → ASSIGNED
Attachment #688903 - Flags: review?(ted)
Component: mach → XPCShell Harness
Product: Core → Testing
Whiteboard: [mach]
Attachment #688903 - Flags: review?(ted) → review+
https://hg.mozilla.org/mozilla-central/rev/112c885bd01f
Status: ASSIGNED → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla20
You need to log in before you can comment on or make changes to this bug.