Closed
Bug 1896089
Opened 1 year ago
Closed 1 year ago
geckoview-junit doesn't run on Android emulator of Windows
Categories
(Testing :: Mozbase, defect)
Testing
Mozbase
Tracking
(firefox134 fixed)
RESOLVED
FIXED
134 Branch
| Tracking | Status | |
|---|---|---|
| firefox134 | --- | fixed |
People
(Reporter: m_kato, Assigned: m_kato)
Details
Attachments
(1 file)
adb.py uses tempfile.NamedTemporaryFile to manage stdout.
But, since NamedTemporaryFile is incompatible with Windows due to https://developercommunity.visualstudio.com/t/Support-FILE_SHARE_DELETE-for-_open-and/880630, when opening temporary file without delete=True, it throws an error on Windows.
As workaround, Python 3.12 adds a new option as delete_on_close to delete on closing file. We should use it if possible on Python 3.12+.
| Assignee | ||
Updated•1 year ago
|
Summary: geckoview-junit doesn't run on Android emulator if on Windows → geckoview-junit doesn't run on Android emulator of Windows
Updated•1 year ago
|
Severity: -- → S3
| Assignee | ||
Updated•1 year ago
|
Assignee: nobody → m_kato
| Assignee | ||
Comment 1•1 year ago
|
||
adb.py uses tempfile.NamedTemporaryFile to manage stdout.
When using it on Windows, opening this file causes PermissionError [*1].
So we have to add the temporary flags on Windows when reading this file.
*1 https://docs.python.org/3/library/tempfile.html#tempfile.NamedTemporaryFile
Pushed by m_kato@ga2.so-net.ne.jp:
https://hg.mozilla.org/integration/autoland/rev/366f2aa11b3d
Use O_TEMPORARY flag to open adb log file. r=jmaher
Status: NEW → RESOLVED
Closed: 1 year ago
status-firefox134:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → 134 Branch
You need to log in
before you can comment on or make changes to this bug.
Description
•