changeset 47774:c405c089611a stable

run-tests: do not inherit file descriptor when running a command This is one of the difference between python2 and python3 and could have been a reason why test hang with python2 + chg. This does not seems to help the hanging issue at all… However, now that this is written lets reduce the difference between python2 and python3. Differential Revision: https://phab.mercurial-scm.org/D11226
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Wed, 28 Jul 2021 14:56:10 +0200
parents fb8389f227a0
children 036b9b3cc79a
files tests/run-tests.py
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/tests/run-tests.py	Wed Jul 28 14:55:06 2021 +0200
+++ b/tests/run-tests.py	Wed Jul 28 14:56:10 2021 +0200
@@ -1587,6 +1587,7 @@
             proc = subprocess.Popen(
                 _bytes2sys(cmd),
                 shell=True,
+                close_fds=closefds,
                 cwd=_bytes2sys(self._testtmp),
                 env=env,
             )