[PATCH 5 of 8] tests: convert bisect support regex to binary

Augie Fackler raf at durin42.com
Tue Sep 19 00:35:22 EDT 2017


# HG changeset patch
# User Augie Fackler <augie at google.com>
# Date 1505794132 14400
#      Tue Sep 19 00:08:52 2017 -0400
# Node ID 5cc38d6d9eabd872af4c553ef93eace0b6fc4ab2
# Parent  6922a7d8b86c3cc0ecaad1e39ab98a1760fdbe6a
tests: convert bisect support regex to binary

The bisection feature of run-tests still fails tests with this because
bisect itself doesn't work yet. We'll get there.

diff --git a/tests/run-tests.py b/tests/run-tests.py
--- a/tests/run-tests.py
+++ b/tests/run-tests.py
@@ -2113,9 +2113,9 @@ class TextTestRunner(unittest.TextTestRu
                     data = sub.stdout.read()
                     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'summary: +(?P<summary>[^\n]+)\n'),
+                        (br'\nThe first (?P<goodbad>bad|good) revision '
+                         br'is:\nchangeset: +\d+:(?P<node>[a-f0-9]+)\n.*\n'
+                         br'summary: +(?P<summary>[^\n]+)\n'),
                         data, (re.MULTILINE | re.DOTALL))
                     if m is None:
                         self.stream.writeln(


More information about the Mercurial-devel mailing list