run-tests: fix broken regular expression
authorAugie Fackler <augie@google.com>
Wed, 06 Apr 2016 22:26:47 -0400
changeset 28823 c5565fc8848d
parent 28822 b7782424dec8
child 28824 9d31582dd636
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.
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 (?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: