Closed Bug 1451246 Opened 6 years ago Closed 6 years ago

[mozrunner] Always encode key and value of env variables as UTF-8 if those are of unicode type

Categories

(Testing :: Mozbase, enhancement, P1)

enhancement

Tracking

(firefox61 fixed)

RESOLVED FIXED
mozilla61
Tracking Status
firefox61 --- fixed

People

(Reporter: whimboo, Assigned: whimboo)

References

Details

Attachments

(1 file)

Currently we only encode the key and value of env variables as UTF-8 if an interactive session is requested. But we also need that for non-interactive sessions given that `subprocess.Popen()` and specifically `os.execvpe()` would fail otherwise. For details see bug 1451062 comment 3.

https://dxr.mozilla.org/mozilla-central/rev/a1fb8ffae378963b128deaaf3a76eff9dbb6be21/testing/mozbase/mozrunner/mozrunner/base/runner.py#115-122
Attachment #8964804 - Flags: review?(gbrown)
Comment on attachment 8964804 [details]
Bug 1451246 - [mozrunner] Always encode key and value of env variables as UTF-8 if those are of unicode type.

https://reviewboard.mozilla.org/r/233530/#review239282
Attachment #8964804 - Flags: review?(gbrown) → review+
Pushed by hskupin@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/72c60d1c5461
[mozrunner] Always encode key and value of env variables as UTF-8 if those are of unicode type. r=gbrown
https://hg.mozilla.org/mozilla-central/rev/72c60d1c5461
Status: ASSIGNED → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla61
Blocks: 1451680
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: