##// END OF EJS Templates
run-tests: replace '/dev/null' with os.devnull for Windows...
Matt Harbison -
r39415:b64d36e5 default
parent child Browse files
Show More
@@ -1072,7 +1072,7 b' class Test(unittest.TestCase):'
1072 env["HGHOSTNAME"] = "test-hostname"
1072 env["HGHOSTNAME"] = "test-hostname"
1073 env['HGIPV6'] = str(int(self._useipv6))
1073 env['HGIPV6'] = str(int(self._useipv6))
1074 if 'HGCATAPULTSERVERPIPE' not in env:
1074 if 'HGCATAPULTSERVERPIPE' not in env:
1075 env['HGCATAPULTSERVERPIPE'] = '/dev/null'
1075 env['HGCATAPULTSERVERPIPE'] = os.devnull
1076
1076
1077 extraextensions = []
1077 extraextensions = []
1078 for opt in self._extraconfigopts:
1078 for opt in self._extraconfigopts:
@@ -1390,7 +1390,7 b' class TTest(Test):'
1390 script.append(b'alias pwd="pwd -W"\n')
1390 script.append(b'alias pwd="pwd -W"\n')
1391
1391
1392 hgcatapult = os.getenv('HGCATAPULTSERVERPIPE')
1392 hgcatapult = os.getenv('HGCATAPULTSERVERPIPE')
1393 if hgcatapult and hgcatapult != '/dev/null':
1393 if hgcatapult and hgcatapult != os.devnull:
1394 # Kludge: use a while loop to keep the pipe from getting
1394 # Kludge: use a while loop to keep the pipe from getting
1395 # closed by our echo commands. The still-running file gets
1395 # closed by our echo commands. The still-running file gets
1396 # reaped at the end of the script, which causes the while
1396 # reaped at the end of the script, which causes the while
General Comments 0
You need to be logged in to leave comments. Login now