Mercurial > hg
diff tests/run-tests.py @ 28823:c5565fc8848d
run-tests: fix broken regular expression
The regular expression in use passed tests because the test repo only
has single-digit changesets present. When I tried to use this for real
today, it broke, because the regular expression would only match a
single digit.
https://xkcd.com/1171/, or something like that.
author | Augie Fackler <augie@google.com> |
---|---|
date | Wed, 06 Apr 2016 22:26:47 -0400 |
parents | f1de5a612a74 |
children | 65fb87479792 |
line wrap: on
line diff
--- a/tests/run-tests.py Tue Apr 05 12:19:45 2016 -0700 +++ b/tests/run-tests.py Wed Apr 06 22:26:47 2016 -0400 @@ -1864,7 +1864,7 @@ sub.wait() m = re.search( (r'\nThe first (?P<goodbad>bad|good) revision ' - r'is:\nchangeset: +\d:(?P<node>[a-f0-9]+)\n.*\n' + r'is:\nchangeset: +\d+:(?P<node>[a-f0-9]+)\n.*\n' r'summary: +(?P<summary>[^\n]+)\n'), data, (re.MULTILINE | re.DOTALL)) if m is None: