Fix parsing of expected performance changes for tests with non-alpha characters.
authorDavid Eichmann <EichmannD@gmail.com>
Wed, 27 Feb 2019 18:35:15 +0000 (18:35 +0000)
committerMarge Bot <ben+marge-bot@smart-cactus.org>
Fri, 1 Mar 2019 21:44:22 +0000 (16:44 -0500)
Python's split() function is used to split on all white space.

testsuite/driver/perf_notes.py

index 2b48353..9362e46 100644 (file)
@@ -140,7 +140,7 @@ def parse_allowed_perf_changes(commitMsg):
     matches = re.findall(exp, commitMsg, re.M)
     changes = {}
     for (direction, metrics_str, opts_str, tests_str) in matches:
-        tests = re.findall(r"(\w+)", tests_str)
+        tests = tests_str.split()
         for test in tests:
             changes.setdefault(test, []).append({
                 'direction': direction,