Open Bug 1279237 Opened 9 years ago Updated 8 months ago

Can't run desktop_unittest.py with a custom --base-work-dir

Categories

(Release Engineering :: Applications: MozharnessCore, defect)

defect

Tracking

(Not tracked)

People

(Reporter: ahal, Unassigned)

Details

If you try to change the base_work_dir via commandline, desktop_unittest.py will fail. This is because the config files completely ignore it by hardcoding os.getcwd(): https://dxr.mozilla.org/mozilla-central/source/testing/mozharness/configs/unittests/linux_unittest.py#5 So basically you need to pass in --base-work-dir, then cd to that directory as well. But if you cd there, then --base-work-dir becomes redundant as os.getcwd() is the default for it anyway. The config values that use that ABS_WORK_DIR variable should get set at runtime (after base_work_dir is calculated). This is another example of immutable configs being a pita. This isn't blocking me as I can work around it with the 'cd' fix. But using os.getcwd() in those config files just seems wrong.
Severity: normal → S4
QA Contact: jlund
You need to log in before you can comment on or make changes to this bug.