diff tests/run-tests.py @ 52566:4f2bbad82e4b

run-tests: call the command using shell=True to please Windows Windows is unhappy about the lack of shell=True, probably because the "self._realhg" is a script instead of a Win32 executable.
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Thu, 19 Dec 2024 00:18:33 +0100
parents 8adfaa5ad484
children 4dd9d5571408
line wrap: on
line diff
--- a/tests/run-tests.py	Thu Dec 19 00:17:21 2024 +0100
+++ b/tests/run-tests.py	Thu Dec 19 00:18:33 2024 +0100
@@ -4127,9 +4127,10 @@
             "{hgmodulepolicy}",
         ]
         p = subprocess.Popen(
-            cmd,
+            " ".join(cmd),
             stdout=subprocess.PIPE,
             stderr=subprocess.PIPE,
+            shell=True,
         )
         out, err = p.communicate()
         if p.returncode != 0:
@@ -4152,9 +4153,10 @@
             "{hgmodules}",
         ]
         p = subprocess.Popen(
-            cmd,
+            " ".join(cmd),
             stdout=subprocess.PIPE,
             stderr=subprocess.PIPE,
+            shell=True,
         )
         out, err = p.communicate()
         if p.returncode != 0: