Closed
Bug 1059478
Opened 10 years ago
Closed 9 years ago
[mozrunner] Fix environment handling in DeviceRunner
Categories
(Testing :: Mozbase, defect)
Tracking
(firefox41 fixed)
RESOLVED
FIXED
mozilla41
Tracking | Status | |
---|---|---|
firefox41 | --- | fixed |
People
(Reporter: ahal, Assigned: parkouss)
Details
Attachments
(1 file, 1 obsolete file)
3.41 KB,
patch
|
parkouss
:
review+
|
Details | Diff | Splinter Review |
Currently there are several hacks in DeviceRunner to prevent the BaseRunner from doing its normal thing. E.g: http://mxr.mozilla.org/mozilla-central/source/testing/mozbase/mozrunner/mozrunner/base/device.py#36 http://mxr.mozilla.org/mozilla-central/source/testing/mozbase/mozrunner/mozrunner/base/device.py#82 These are in place to work around limitations in the parent class. We should fix this up properly.
Assignee | ||
Comment 1•9 years ago
|
||
I looked at it, and tought it was good to make only a change in DeviceRunner, not in the parent class. The idea is to not pass any env parameter to the parent, so the real env used will be the copy of os.environ (https://dxr.mozilla.org/mozilla-central/source/testing/mozbase/mozrunner/mozrunner/base/runner.py#39). I think it should be fine - the self._env variable is still used to generate a part of the command line.
Assignee: nobody → j.parkouss
Status: NEW → ASSIGNED
Attachment #8617416 -
Flags: review?(ahalberstadt)
Reporter | ||
Comment 2•9 years ago
|
||
Comment on attachment 8617416 [details] [diff] [review] 1059478.patch Review of attachment 8617416 [details] [diff] [review]: ----------------------------------------------------------------- This makes sense. I'd like to see some opt and debug emulator tests on try first though. ::: testing/mozbase/mozrunner/mozrunner/base/device.py @@ +32,5 @@ > 'NO_EM_RESTART': '1', } > > def __init__(self, device_class, device_args=None, **kwargs): > process_log = tempfile.NamedTemporaryFile(suffix='pidlog') > + # the env will be passed to the device, it is not a not *real* env nit: extra "not". @@ +33,5 @@ > > def __init__(self, device_class, device_args=None, **kwargs): > process_log = tempfile.NamedTemporaryFile(suffix='pidlog') > + # the env will be passed to the device, it is not a not *real* env > + self._env = dict(DeviceRunner.env) Maybe we should call this self._device_env or something similar to make it slightly less confusing.
Attachment #8617416 -
Flags: review?(ahalberstadt) → review+
Assignee | ||
Comment 3•9 years ago
|
||
Eh, good idea; done. What should I run in push try here Andrew ?
Attachment #8617416 -
Attachment is obsolete: true
Flags: needinfo?(ahalberstadt)
Attachment #8621110 -
Flags: review+
Reporter | ||
Comment 4•9 years ago
|
||
At least the full suite of B2G emulator tests, debug and opt. I'd also like to see crashreporting still working. It looks like Emulator debug mochitest-10 has an intermittent crash, maybe you can just retrigger that a bunch until it shows up.
Flags: needinfo?(ahalberstadt)
Assignee | ||
Comment 5•9 years ago
|
||
Thanks! Pushed to try: https://treeherder.mozilla.org/#/jobs?repo=try&revision=a161ba00be0c
Comment 7•9 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/ee270cc8a287
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
status-firefox41:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla41
You need to log in
before you can comment on or make changes to this bug.
Description
•