changeset 53195:d2c73b0de7e2

test: use a --pure install in test-install.t The non pure install build and install get tested a lot not, especially by the test runner itself. So lets use a --pure install there to speeds things up.
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Thu, 17 Apr 2025 16:24:12 +0200
parents 90bf144efe2f
children 1b01db715fe4
files tests/test-install.t
diffstat 1 files changed, 4 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/tests/test-install.t	Fri Apr 18 03:00:51 2025 +0200
+++ b/tests/test-install.t	Thu Apr 17 16:24:12 2025 +0200
@@ -214,14 +214,16 @@
 
 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.
-  $ (syshgenv; ./installenv/*/pip --no-cache-dir install $TESTDIR/.. >> pip.log)
+  $ (syshgenv; ./installenv/*/pip --no-cache-dir \
+  >   install --config-settings --global-option=--pure \
+  >   $TESTDIR/.. >> pip.log)
     Failed building wheel for mercurial (?)
   WARNING: You are using pip version *; however, version * is available. (glob) (?)
   You should consider upgrading via the '$TESTTMP/installenv/bin/python* -m pip install --upgrade pip' command. (glob) (?)
    (?)
   [notice] A new release of pip is available: * -> * (glob) (?)
   [notice] To update, run: * -m pip install --upgrade pip (glob) (?)
-  $ ./installenv/*/hg debuginstall || cat pip.log
+  $ HGMODULEPOLICY=py ./installenv/*/hg debuginstall || cat pip.log
   checking encoding (ascii)...
   checking Python executable (*) (glob)
   checking Python implementation (*) (glob)