`--restart-between-tests` doesn't support `test-directories` and `profile-path` manifest directives
Categories
(Testing :: Mochitest, defect)
Tracking
(firefox151 fixed)
| Tracking | Status | |
|---|---|---|
| firefox151 | --- | fixed |
People
(Reporter: florian, Assigned: florian)
References
Details
Attachments
(1 file)
When running mochitest with --restart-between-tests, the test-directories and profile-path manifest directives are not properly handled across browser restarts.
test-directories were created once in runTests before the restart loop, then removed by cleanup() after each test, and never re-created for subsequent tests. Similarly, profile-path was set once in runTests but reset to None by initializeLooping() on each restart.
The fix moves the parseAndCreateTestsDirs call and profile-path setup from runTests into doTests, so they run on every iteration of the restart loop.
Reproduces locally with:
./mach test security/sandbox/test/browser_content_sandbox_fs_xdg_xdgConfigHome.js --restart-between-tests --headless
Which fails with:
TEST-UNEXPECTED-FAIL | security/sandbox/test/browser_content_sandbox_fs_xdg_xdgConfigHome.js | bound setup - Profile directory (/tmp/tmpk09i_8hd.mozrunner) should be inside XDG_CONFIG_HOME (/tmp/.xdg_config_home_test) - false == true
| Assignee | ||
Comment 1•4 months ago
|
||
Comment 3•4 months ago
|
||
| bugherder | ||
Description
•