diff tests/run-tests.py @ 50933:6408777c8fa4

branching: merge stable into default
author Rapha?l Gom?s <rgomes@octobus.net>
date Wed, 06 Sep 2023 18:12:27 +0200
parents 93cc085653fb afb3cccc90f7
children 493034cc3265 7ff35f1290c0
line wrap: on
line diff
--- a/tests/run-tests.py	Fri Sep 01 00:09:55 2023 +0200
+++ b/tests/run-tests.py	Wed Sep 06 18:12:27 2023 +0200
@@ -165,6 +165,7 @@
     return p.decode('utf-8')
 
 
+original_env = os.environ.copy()
 osenvironb = getattr(os, 'environb', None)
 if osenvironb is None:
     # Windows lacks os.environb, for instance.  A proxy over the real thing
@@ -3770,7 +3771,7 @@
         makedirs(self._bindir)
 
         vlog("# Running", cmd.decode("utf-8"))
-        if subprocess.call(_bytes2sys(cmd), shell=True) == 0:
+        if subprocess.call(_bytes2sys(cmd), shell=True, env=original_env) == 0:
             if not self.options.verbose:
                 try:
                     os.remove(installerrs)