Check for --disable-tests when running mach test commands

REOPENED
Unassigned

Status

REOPENED
2 years ago
2 years ago

People

(Reporter: gandalf, Unassigned)

Tracking

Version 3
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

2 years ago
I can't run xpcshell-test

When I attempt to run the example from [0]:

`./mach xpcshell-test netwerk/test/`


I'm getting a failure with 0 tests run.

When I attempt to run full `./mach xpcshell-test`, I'm getting https://pastebin.mozilla.org/8888902

I asked :stas to try the same commands and he's getting the same errors, so it's not specific to my machine, but since we're both on Linux it may be linux specific.


[0] https://developer.mozilla.org/en-US/docs/Mozilla/QA/Writing_xpcshell-based_unit_tests#Your_first_xpcshell-based_test
(Reporter)

Comment 1

2 years ago
:gps, can you help me?
Flags: needinfo?(gps)
(Reporter)

Comment 2

2 years ago
Much to my surprise, removing "--disable-tests" from mozconfig fixed this issue. Magic.
Status: NEW → RESOLVED
Last Resolved: 2 years ago
Flags: needinfo?(gps)
Resolution: --- → INVALID
We should definitely error if you try to run a mach test command with --disable-tests.
Component: XPCShell Harness → General
Summary: Can't launch xpschell-test → Check for --disable-tests when running mach test commands
Status: RESOLVED → REOPENED
Resolution: INVALID → ---
You need to log in before you can comment on or make changes to this bug.