Closed Bug 1526654 Opened 5 years ago Closed 5 years ago

Running a single failing xpcshell test for debugging shouldn't run it twice

Categories

(Testing :: XPCShell Harness, defect, P2)

Version 3
defect

Tracking

(firefox67 fixed)

RESOLVED FIXED
mozilla67
Tracking Status
firefox67 --- fixed

People

(Reporter: florian, Assigned: gbrown)

References

Details

Attachments

(1 file)

When attempting to debug an xpcshell test to debug it using ./mach test <path>.js, the test runs and fails, and then is ran a second time after the "Retrying tests that failed when run in parallel" message.

Apparently this was already fixed once in bug 969633.

The earlier fix looks appropriate. I think it was accidentally lost in bug 1209312.

Assignee: nobody → gbrown
Priority: -- → P2

In the harness, sequential mode is set when self.singleFile is set. self.singleFile has
been set correctly when a single test is specified as a test_path (mach xpcshell-test <test>)
but it has not been set correctly if a single test is specified in a manifest (mach test <test);
this patch corrects for that by setting self.singleFile after all test specifications have
set self.alltests.

An unintended consequence of the code rearrangement is that the chunk_by_slice filter is
now used even when self.singleFile would be set -- but only if totalChunks > 1; this
situation seems very unlikely, and the consequences minimal.

Pushed by gbrown@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/8130ba1701bb
Use xpcshell sequential mode consistently when running a single test; r=bc
Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla67
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: