Mercurial > hg
diff tests/run-tests.py @ 31827:220d4bffd23e
run-tests: prevent a (glob) declaration from reordering (?) lines
Previously, if a series of optional output lines marked with '(?)' had a (glob)
in one of the first lines, the output would be reordered such that it came last
if none of the lines were output. The (re) declaration wasn't affected, which
was helpful in figuring this out. There were no tests for '(re) (?)' so add
that to make sure everything plays nice.
author | Matt Harbison <matt_harbison@yahoo.com> |
---|---|
date | Wed, 05 Apr 2017 22:00:33 -0400 |
parents | 728d37353e1e |
children | 4eec2f04a672 |
line wrap: on
line diff
--- a/tests/run-tests.py Fri Apr 07 13:45:33 2017 +0530 +++ b/tests/run-tests.py Wed Apr 05 22:00:33 2017 -0400 @@ -1385,7 +1385,7 @@ # ignore '(glob)' added to l by 'replacements' if l.endswith(b" (glob)\n"): l = l[:-8] + b"\n" - return TTest.globmatch(el[:-8], l) + return TTest.globmatch(el[:-8], l) or retry if os.altsep and l.replace(b'\\', b'/') == el: return b'+glob' return retry