##// END OF EJS Templates
run-tests: configure the environment to expand `~` properly with Windows py38+...
Matt Harbison -
r46708:08fd76a5 default
parent child Browse files
Show More
@@ -1335,6 +1335,9 b' class Test(unittest.TestCase):'
1335 env['TESTTMP'] = _bytes2sys(self._testtmp)
1335 env['TESTTMP'] = _bytes2sys(self._testtmp)
1336 env['TESTNAME'] = self.name
1336 env['TESTNAME'] = self.name
1337 env['HOME'] = _bytes2sys(self._testtmp)
1337 env['HOME'] = _bytes2sys(self._testtmp)
1338 if os.name == 'nt':
1339 # py3.8+ ignores HOME: https://bugs.python.org/issue36264
1340 env['USERPROFILE'] = env['HOME']
1338 formated_timeout = _bytes2sys(b"%d" % default_defaults['timeout'][1])
1341 formated_timeout = _bytes2sys(b"%d" % default_defaults['timeout'][1])
1339 env['HGTEST_TIMEOUT_DEFAULT'] = formated_timeout
1342 env['HGTEST_TIMEOUT_DEFAULT'] = formated_timeout
1340 env['HGTEST_TIMEOUT'] = _bytes2sys(b"%d" % self._timeout)
1343 env['HGTEST_TIMEOUT'] = _bytes2sys(b"%d" % self._timeout)
@@ -1972,6 +1972,7 b' if it is a relative path'
1972 > EOF
1972 > EOF
1973
1973
1974 $ HOME=`pwd`/home; export HOME
1974 $ HOME=`pwd`/home; export HOME
1975 $ USERPROFILE=`pwd`/home; export USERPROFILE
1975
1976
1976 $ cat > latesttag/.hg/hgrc <<EOF
1977 $ cat > latesttag/.hg/hgrc <<EOF
1977 > [ui]
1978 > [ui]
General Comments 0
You need to be logged in to leave comments. Login now