Mercurial > public > mercurial-scm > hg-stable
diff tests/test-run-tests.py @ 33721:eeed23508383
run-tests: drop required (feature !) style lines when the output is missing
Essentially, these were acting as a verbose (?) flag, since they weren't being
dropped when required. Foozy has a nice description [1]. Basically, a couple
more places needed to check the features before treating it as optional.
I don't like how test-run-tests.py had to be hacked, but _hghave() can't be made
a static method. The test change was a change while developing `debugssl`,
prior to tightening up the cases where the message is printed, that this fix
would have caught.
[1] https://www.mercurial-scm.org/pipermail/mercurial-devel/2017-July/101941.html
author | Matt Harbison <matt_harbison@yahoo.com> |
---|---|
date | Tue, 18 Jul 2017 00:12:44 -0400 |
parents | f798ffe7cb08 |
children | 2e43c5cd57a7 |
line wrap: on
line diff
--- a/tests/test-run-tests.py Mon Jul 24 10:34:32 2017 +0200 +++ b/tests/test-run-tests.py Tue Jul 18 00:12:44 2017 -0400 @@ -39,7 +39,8 @@ and output.endswith(b'\n')), 'missing newline' assert not re.search(br'[^ \w\\/\r\n()*?]', expected + output), \ b'single backslash or unknown char' - match = run_tests.TTest.linematch(expected, output) + test = run_tests.TTest('test-run-test.t', '.', '.') + match = test.linematch(expected, output) if isinstance(match, str): return 'special: ' + match elif isinstance(match, bytes):