--chaos should not be type=int
Categories
(Testing :: web-platform-tests, task)
Tracking
(firefox109 fixed)
Tracking | Status | |
---|---|---|
firefox109 | --- | fixed |
People
(Reporter: mccr8, Assigned: jgraham)
References
Details
Attachments
(1 file)
The --chaos
command line option is defined in testing/web-platform/tests/tools/wptrunner/wptrunner/wptcommandline.py with type=int. Later, this value is used to set an environment variable: env["MOZ_CHAOSMODE"] = str(self.chaos_mode_flags)
.
This means that the command line option has to be a base 10 integer, and the env var will be set to a base 10 integer. However, this value is supposed to be a hex value: https://searchfox.org/mozilla-central/rev/d25eb00ab4e90cc0130cd18f303a04cc2a2f8409/toolkit/xre/nsAppRunner.cpp#3458-3466
If the env var fails to parse as a hex value, then it is treated as ChaosFeature::Any, so this is probably okay for the most common use case, but you can't set it to any other value, like 0xfb, which seems to be the default in reftests and mochitests.
Assignee | ||
Updated•3 years ago
|
Assignee | ||
Comment 1•3 years ago
|
||
Updated•3 years ago
|
Comment 4•3 years ago
|
||
bugherder |
Description
•