# HG changeset patch # User Augie Fackler # Date 1459996007 14400 # Node ID c5565fc8848dd084d104ca40c33d1acdfcff8bc6 # Parent b7782424dec8eeb977d0aa4954ed424562dac0a8 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. diff -r b7782424dec8 -r c5565fc8848d tests/run-tests.py --- 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 (?Pbad|good) revision ' - r'is:\nchangeset: +\d:(?P[a-f0-9]+)\n.*\n' + r'is:\nchangeset: +\d+:(?P[a-f0-9]+)\n.*\n' r'summary: +(?P[^\n]+)\n'), data, (re.MULTILINE | re.DOTALL)) if m is None: