changeset 39288:a235ee4cfc1c

run-tests: don't append rtendtracing logs if pipe is /dev/null If HGCATAPULTSERVERPIPE is not set, we set it to /dev/null, so we need to make sure the value is not /dev/null before appending logs. This fixes some of test-run-tests.t failures. Differential Revision: https://phab.mercurial-scm.org/D4401
author Pulkit Goyal <pulkit@yandex-team.ru>
date Mon, 27 Aug 2018 20:39:32 +0300
parents 6b81d2ff118f
children 97f52862b1bd
files tests/run-tests.py
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/tests/run-tests.py	Mon Aug 27 04:31:09 2018 +0530
+++ b/tests/run-tests.py	Mon Aug 27 20:39:32 2018 +0300
@@ -1389,7 +1389,8 @@
         if os.getenv('MSYSTEM'):
             script.append(b'alias pwd="pwd -W"\n')
 
-        if os.getenv('HGCATAPULTSERVERPIPE'):
+        hgcatapult = os.getenv('HGCATAPULTSERVERPIPE')
+        if hgcatapult and hgcatapult != '/dev/null':
             # Kludge: use a while loop to keep the pipe from getting
             # closed by our echo commands. The still-running file gets
             # reaped at the end of the script, which causes the while