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)