run-tests: do not inherit file descriptor when running a command stable
authorPierre-Yves David <pierre-yves.david@octobus.net>
Wed, 28 Jul 2021 14:56:10 +0200
branchstable
changeset 47775 c405c089611a
parent 47774 fb8389f227a0
child 47776 036b9b3cc79a
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
tests/run-tests.py
--- 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,
             )