Closed Bug 1899669 Opened 2 years ago Closed 2 years ago

Support --setenv in mach xpcshell-test / mach test

Categories

(Testing :: XPCShell Harness, enhancement)

enhancement

Tracking

(firefox128 fixed)

RESOLVED FIXED
128 Branch
Tracking Status
firefox128 --- fixed

People

(Reporter: robwu, Assigned: robwu)

References

Details

(Whiteboard: [addons-jira])

Attachments

(1 external file)

I'm trying to debug an issue in a xpcshell test on Android that can only be reproduced with --verify. The test fails at the second step, due to the MOZ_CHAOSMODE=0xfb environment variable set by the test runner. But before it gets there, the test itself is run 10 times.

I want to isolate the issue, without running the first part of --verify, but there doesn't seem to be a way to do so.

When I run tests locally on the host, I can set the environment variable before invoking ./mach test, but that doesn't work when I want to invoke the ./mach test command to run the tests on a remote device (Android emulator).

Some other tests (mochitests, raptor, others) support the --setenv flag. Let's implement the same for xpcshell tests.

See Also: → 1881876
Pushed by rob@robwu.nl: https://hg.mozilla.org/integration/autoland/rev/3763d5c0b003 Add --setenv support to mach xpcshell-test r=jmaher
Status: ASSIGNED → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 128 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: