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

login
register
mail settings
Submitter Augie Fackler
Date Sept. 19, 2017, 4:35 a.m.
Message ID <5cc38d6d9eabd872af4c.1505795722@augie-macbookpro2.roam.corp.google.com>
Download mbox | patch
Permalink /patch/24011/
State Accepted
Headers show

Comments

Augie Fackler - Sept. 19, 2017, 4:35 a.m.
# HG changeset patch
# User Augie Fackler <augie@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.

Patch

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(