##// END OF EJS Templates
run-tests: fix `HGTESTEXTRAEXTENSIONS` with py3...
Matt Harbison -
r46707:af3a6900 default
parent child Browse files
Show More
@@ -1364,14 +1364,14 b' class Test(unittest.TestCase):'
1364
1364
1365 extraextensions = []
1365 extraextensions = []
1366 for opt in self._extraconfigopts:
1366 for opt in self._extraconfigopts:
1367 section, key = _sys2bytes(opt).split(b'.', 1)
1367 section, key = opt.split('.', 1)
1368 if section != 'extensions':
1368 if section != 'extensions':
1369 continue
1369 continue
1370 name = key.split(b'=', 1)[0]
1370 name = key.split('=', 1)[0]
1371 extraextensions.append(name)
1371 extraextensions.append(name)
1372
1372
1373 if extraextensions:
1373 if extraextensions:
1374 env['HGTESTEXTRAEXTENSIONS'] = b' '.join(extraextensions)
1374 env['HGTESTEXTRAEXTENSIONS'] = ' '.join(extraextensions)
1375
1375
1376 # LOCALIP could be ::1 or 127.0.0.1. Useful for tests that require raw
1376 # LOCALIP could be ::1 or 127.0.0.1. Useful for tests that require raw
1377 # IP addresses.
1377 # IP addresses.
@@ -1956,9 +1956,12 b' Test automatic pattern replacement'
1956 $ cat << EOF >> test-config-opt.t
1956 $ cat << EOF >> test-config-opt.t
1957 > $ hg init test-config-opt
1957 > $ hg init test-config-opt
1958 > $ hg -R test-config-opt purge
1958 > $ hg -R test-config-opt purge
1959 > $ echo "HGTESTEXTRAEXTENSIONS: \$HGTESTEXTRAEXTENSIONS"
1960 > HGTESTEXTRAEXTENSIONS: purge
1959 > EOF
1961 > EOF
1960
1962
1961 $ rt --extra-config-opt extensions.purge= test-config-opt.t
1963 $ rt --extra-config-opt extensions.purge= \
1964 > --extra-config-opt not.an.extension=True test-config-opt.t
1962 running 1 tests using 1 parallel processes
1965 running 1 tests using 1 parallel processes
1963 .
1966 .
1964 # Ran 1 tests, 0 skipped, 0 failed.
1967 # Ran 1 tests, 0 skipped, 0 failed.
General Comments 0
You need to be logged in to leave comments. Login now