# HG changeset patch # User Pierre-Yves David <pierre-yves.david@octobus.net> # Date 1694219462 -7200 # Sat Sep 09 02:31:02 2023 +0200 # Node ID e9728280ac37548665a0141c16ed39a0da727c57 # Parent a999904b491010e96118c352494eb34bb4eec261 tests: avoid using pip from the same directory in parallel This is apparently broken as test get super flaky if we do not do this :-/ diff --git a/tests/test-bin-env-util.t b/tests/test-bin-env-util.t --- a/tests/test-bin-env-util.t +++ b/tests/test-bin-env-util.t @@ -3,7 +3,11 @@ $ python -m venv $TESTTMP/ $ . $TESTTMP/bin/activate - $ pip install $TESTDIR/.. --quiet +# pip is apparently unable to have multiple instance installing from the same +# directory at the same time, so we do a local copy first ☹ + $ cp -aR $TESTDIR/.. poulpe-dir + $ pip install ./poulpe-dir/ --quiet + $ rm -rf poulpe-dir Check basic invocation diff --git a/tests/test-data-setup.t b/tests/test-data-setup.t --- a/tests/test-data-setup.t +++ b/tests/test-data-setup.t @@ -3,7 +3,11 @@ $ python -m venv $TESTTMP/ $ . $TESTTMP/bin/activate - $ pip install $TESTDIR/.. --quiet +# pip is apparently unable to have multiple instance installing from the same +# directory at the same time, so we do a local copy first ☹ + $ cp -aR $TESTDIR/.. poulpe-dir + $ pip install ./poulpe-dir/ --quiet + $ rm -rf poulpe-dir This tests the data setup script for Mercurial. diff --git a/tests/test-env-desc.t b/tests/test-env-desc.t --- a/tests/test-env-desc.t +++ b/tests/test-env-desc.t @@ -3,7 +3,11 @@ $ python -m venv $TESTTMP/ $ . $TESTTMP/bin/activate - $ pip install $TESTDIR/.. --quiet +# pip is apparently unable to have multiple instance installing from the same +# directory at the same time, so we do a local copy first ☹ + $ cp -aR $TESTDIR/.. poulpe-dir + $ pip install ./poulpe-dir/ --quiet + $ rm -rf poulpe-dir Check basic error ---------------- diff --git a/tests/test-run-debug.t b/tests/test-run-debug.t --- a/tests/test-run-debug.t +++ b/tests/test-run-debug.t @@ -5,7 +5,11 @@ $ python -m venv $TESTTMP/ $ . $TESTTMP/bin/activate - $ pip install $TESTDIR/.. --quiet +# pip is apparently unable to have multiple instance installing from the same +# directory at the same time, so we do a local copy first ☹ + $ cp -aR $TESTDIR/.. poulpe-dir + $ pip install ./poulpe-dir/ --quiet + $ rm -rf poulpe-dir Setup the bin-env ----------------- diff --git a/tests/test-run-variants.t b/tests/test-run-variants.t --- a/tests/test-run-variants.t +++ b/tests/test-run-variants.t @@ -3,7 +3,11 @@ $ python -m venv $TESTTMP/ $ . $TESTTMP/bin/activate - $ pip install $TESTDIR/.. --quiet +# pip is apparently unable to have multiple instance installing from the same +# directory at the same time, so we do a local copy first ☹ + $ cp -aR $TESTDIR/.. poulpe-dir + $ pip install ./poulpe-dir/ --quiet + $ rm -rf poulpe-dir Setup the bin-env ----------------- diff --git a/tests/test-simple-run.t b/tests/test-simple-run.t --- a/tests/test-simple-run.t +++ b/tests/test-simple-run.t @@ -3,7 +3,11 @@ $ python -m venv $TESTTMP/ $ . $TESTTMP/bin/activate - $ pip install $TESTDIR/.. --quiet +# pip is apparently unable to have multiple instance installing from the same +# directory at the same time, so we do a local copy first ☹ + $ cp -aR $TESTDIR/.. poulpe-dir + $ pip install ./poulpe-dir/ --quiet + $ rm -rf poulpe-dir Setup the bin-env -----------------