Show More
@@ -531,6 +531,9 b' def getparser():' | |||
|
531 | 531 | action="store_true", |
|
532 | 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 | 537 | hgconf.add_argument("--compiler", help="compiler to build with") |
|
535 | 538 | hgconf.add_argument( |
|
536 | 539 | '--extra-config-opt', |
@@ -924,6 +927,7 b' class Test(unittest.TestCase):' | |||
|
924 | 927 | hgcommand=None, |
|
925 | 928 | slowtimeout=None, |
|
926 | 929 | usechg=False, |
|
930 | chgdebug=False, | |
|
927 | 931 | useipv6=False, |
|
928 | 932 | ): |
|
929 | 933 | """Create a test from parameters. |
@@ -979,6 +983,7 b' class Test(unittest.TestCase):' | |||
|
979 | 983 | self._shell = _sys2bytes(shell) |
|
980 | 984 | self._hgcommand = hgcommand or b'hg' |
|
981 | 985 | self._usechg = usechg |
|
986 | self._chgdebug = chgdebug | |
|
982 | 987 | self._useipv6 = useipv6 |
|
983 | 988 | |
|
984 | 989 | self._aborted = False |
@@ -1417,6 +1422,8 b' class Test(unittest.TestCase):' | |||
|
1417 | 1422 | |
|
1418 | 1423 | if self._usechg: |
|
1419 | 1424 | env['CHGSOCKNAME'] = os.path.join(self._chgsockdir, b'server') |
|
1425 | if self._chgdebug: | |
|
1426 | env['CHGDEBUG'] = 'true' | |
|
1420 | 1427 | |
|
1421 | 1428 | return env |
|
1422 | 1429 | |
@@ -3386,6 +3393,7 b' class TestRunner(object):' | |||
|
3386 | 3393 | shell=self.options.shell, |
|
3387 | 3394 | hgcommand=self._hgcommand, |
|
3388 | 3395 | usechg=bool(self.options.with_chg or self.options.chg), |
|
3396 | chgdebug=self.options.chg_debug, | |
|
3389 | 3397 | useipv6=useipv6, |
|
3390 | 3398 | **kwds |
|
3391 | 3399 | ) |
General Comments 0
You need to be logged in to leave comments.
Login now