# HG changeset patch # User Augie Fackler # Date 2016-04-07 02:26:47 # 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 --git a/tests/run-tests.py b/tests/run-tests.py --- a/tests/run-tests.py +++ b/tests/run-tests.py @@ -1864,7 +1864,7 @@ class TextTestRunner(unittest.TextTestRu 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: