Skip to content

Commit

Permalink
Bug 1531941 [wpt PR 15614] - [wpt] Avoid race condition during module…
Browse files Browse the repository at this point in the history
… install, a=testonly

Automatic update from web-platform-tests
[wpt] Avoid race condition during module install (#15614)

See web-platform-tests/results-collection#649
--

wpt-commits: cc4f2960306867e50d5beba4e86749aa75961fe8
wpt-pr: 15614
  • Loading branch information
jugglinmike authored and jgraham committed Apr 1, 2019
1 parent 6d3a599 commit 870deb4
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions testing/web-platform/tests/tools/wpt/virtualenv.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,13 @@ def start(self):
self.activate()

def install(self, *requirements):
call(self.pip_path, "install", *requirements)
# `--prefer-binary` guards against race conditions when installation
# occurs while packages are in the process of being published.
call(self.pip_path, "install", "--prefer-binary", *requirements)

def install_requirements(self, requirements_path):
call(self.pip_path, "install", "-r", requirements_path)
# `--prefer-binary` guards against race conditions when installation
# occurs while packages are in the process of being published.
call(
self.pip_path, "install", "--prefer-binary", "-r", requirements_path
)

0 comments on commit 870deb4

Please sign in to comment.