##// END OF EJS Templates
run-tests: add --chg-debug flag to show chg debug output...
Pulkit Goyal -
r45105:78a8f65e default
parent child Browse files
Show More
@@ -531,6 +531,9 b' def getparser():'
531 action="store_true",
531 action="store_true",
532 help="install and use chg wrapper in place of hg",
532 help="install and use chg wrapper in place of hg",
533 )
533 )
534 hgconf.add_argument(
535 "--chg-debug", action="store_true", help="show chg debug logs",
536 )
534 hgconf.add_argument("--compiler", help="compiler to build with")
537 hgconf.add_argument("--compiler", help="compiler to build with")
535 hgconf.add_argument(
538 hgconf.add_argument(
536 '--extra-config-opt',
539 '--extra-config-opt',
@@ -924,6 +927,7 b' class Test(unittest.TestCase):'
924 hgcommand=None,
927 hgcommand=None,
925 slowtimeout=None,
928 slowtimeout=None,
926 usechg=False,
929 usechg=False,
930 chgdebug=False,
927 useipv6=False,
931 useipv6=False,
928 ):
932 ):
929 """Create a test from parameters.
933 """Create a test from parameters.
@@ -979,6 +983,7 b' class Test(unittest.TestCase):'
979 self._shell = _sys2bytes(shell)
983 self._shell = _sys2bytes(shell)
980 self._hgcommand = hgcommand or b'hg'
984 self._hgcommand = hgcommand or b'hg'
981 self._usechg = usechg
985 self._usechg = usechg
986 self._chgdebug = chgdebug
982 self._useipv6 = useipv6
987 self._useipv6 = useipv6
983
988
984 self._aborted = False
989 self._aborted = False
@@ -1417,6 +1422,8 b' class Test(unittest.TestCase):'
1417
1422
1418 if self._usechg:
1423 if self._usechg:
1419 env['CHGSOCKNAME'] = os.path.join(self._chgsockdir, b'server')
1424 env['CHGSOCKNAME'] = os.path.join(self._chgsockdir, b'server')
1425 if self._chgdebug:
1426 env['CHGDEBUG'] = 'true'
1420
1427
1421 return env
1428 return env
1422
1429
@@ -3386,6 +3393,7 b' class TestRunner(object):'
3386 shell=self.options.shell,
3393 shell=self.options.shell,
3387 hgcommand=self._hgcommand,
3394 hgcommand=self._hgcommand,
3388 usechg=bool(self.options.with_chg or self.options.chg),
3395 usechg=bool(self.options.with_chg or self.options.chg),
3396 chgdebug=self.options.chg_debug,
3389 useipv6=useipv6,
3397 useipv6=useipv6,
3390 **kwds
3398 **kwds
3391 )
3399 )
General Comments 0
You need to be logged in to leave comments. Login now