Patchwork tests: don't touch the network when using virtualenv

login
register
mail settings
Submitter Danek Duvall
Date June 19, 2017, 11:09 p.m.
Message ID <c129491ce55e703b50d3.1497913766@smelly>
Download mbox | patch
Permalink /patch/21516/
State Accepted
Headers show

Comments

Danek Duvall - June 19, 2017, 11:09 p.m.
# HG changeset patch
# User Danek Duvall <danek.duvall@oracle.com>
# Date 1497913700 25200
#      Mon Jun 19 16:08:20 2017 -0700
# Node ID c129491ce55e703b50d39fb30ae6da6aa50fc78e
# Parent  661025fd3e1cd5d5e2dee12b7f64312d6cd48a0b
tests: don't touch the network when using virtualenv
Sean Farley - June 20, 2017, 6:18 p.m.
danek.duvall@oracle.com writes:

> # HG changeset patch
> # User Danek Duvall <danek.duvall@oracle.com>
> # Date 1497913700 25200
> #      Mon Jun 19 16:08:20 2017 -0700
> # Node ID c129491ce55e703b50d39fb30ae6da6aa50fc78e
> # Parent  661025fd3e1cd5d5e2dee12b7f64312d6cd48a0b
> tests: don't touch the network when using virtualenv

Sure, queued. Thanks!

Patch

diff --git a/tests/test-install.t b/tests/test-install.t
--- a/tests/test-install.t
+++ b/tests/test-install.t
@@ -185,7 +185,7 @@  Note: --no-site-packages is deprecated, 
 ancient virtualenv from their linux distro or similar and it's not yet
 the default for them.
   $ unset PYTHONPATH
-  $ $PYTHON -m virtualenv --no-site-packages installenv >> pip.log
+  $ $PYTHON -m virtualenv --no-site-packages --never-download installenv >> pip.log
 Note: we use this weird path to run pip and hg to avoid platform differences,
 since it's bin on most platforms but Scripts on Windows.
   $ ./installenv/*/pip install $TESTDIR/.. >> pip.log