Closed Bug 1560031 Opened 7 years ago Closed 6 years ago

Only push /etc/hosts file once during wptrunner setup

Categories

(Testing :: web-platform-tests, enhancement)

enhancement
Not set
normal

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 1560033

People

(Reporter: whimboo, Unassigned)

References

Details

Currently we push the /etc/hosts file each time the browser application gets started, even nothing changes in it.

After talking to James and Maja we should best move it to the setup/initialization of wptrunner.

See Also: → 1560033

Some archaeology:

(Oh and forgive the "Fennec" naming everywhere. This code is also for GeckoView now.)

Something I missed and what James mentioned on IRC is that we actually have a check if the newly generated hosts file is different from the current one, and only push it under such a condition:

https://searchfox.org/mozilla-central/rev/b3b401254229f0a26f7ee625ef5f09c6c31e3949/testing/web-platform/tests/tools/wptrunner/wptrunner/browsers/fennec.py#90

It means that we only do it once if all is fine with the emulator, but could fail again and again if there are remount problems of the system partition and the newly hosts file cannot be pushed.

Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.