Mercurial > hg
comparison 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 |
comparison
equal
deleted
inserted
replaced
28822:b7782424dec8 | 28823:c5565fc8848d |
---|---|
1862 stdout=subprocess.PIPE) | 1862 stdout=subprocess.PIPE) |
1863 data = sub.stdout.read() | 1863 data = sub.stdout.read() |
1864 sub.wait() | 1864 sub.wait() |
1865 m = re.search( | 1865 m = re.search( |
1866 (r'\nThe first (?P<goodbad>bad|good) revision ' | 1866 (r'\nThe first (?P<goodbad>bad|good) revision ' |
1867 r'is:\nchangeset: +\d:(?P<node>[a-f0-9]+)\n.*\n' | 1867 r'is:\nchangeset: +\d+:(?P<node>[a-f0-9]+)\n.*\n' |
1868 r'summary: +(?P<summary>[^\n]+)\n'), | 1868 r'summary: +(?P<summary>[^\n]+)\n'), |
1869 data, (re.MULTILINE | re.DOTALL)) | 1869 data, (re.MULTILINE | re.DOTALL)) |
1870 if m is None: | 1870 if m is None: |
1871 self.stream.writeln( | 1871 self.stream.writeln( |
1872 'Failed to identify failure point for %s' % test) | 1872 'Failed to identify failure point for %s' % test) |