From d86767fa617e35715f3f46edfd7c07afc704bb86 Mon Sep 17 00:00:00 2001 From: Anderson Chauphan Date: Mon, 29 Jan 2024 13:51:57 -0700 Subject: [PATCH] Fix configure output regex pattern (#600) Fix regex pattern to match a string literal rather than a raw json string output which was used prior for during testing. --- .../ci_support/cdash_analyze_and_report_random_failures.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tribits/ci_support/cdash_analyze_and_report_random_failures.py b/tribits/ci_support/cdash_analyze_and_report_random_failures.py index e3dba54a2..f54f97e70 100755 --- a/tribits/ci_support/cdash_analyze_and_report_random_failures.py +++ b/tribits/ci_support/cdash_analyze_and_report_random_failures.py @@ -186,9 +186,9 @@ def getDateRangeTuple(referenceDateTime, dayTimeDelta): def getTopicTargetSha1s(buildConfigOutput): - pattern = r"Parent [12]:\\n\s+(\w+)" - matchedList = regex.findall(pattern, str(buildConfigOutput)) - + pattern = r"Parent [12]:\n\s+(\w+)" + matchedList = regex.findall(pattern, buildConfigOutput) + if len(matchedList) != 2: return None return tuple(matchedList)