From 7ebc52caf76dc13e43bf4e90f501cded88a1caf8 Mon Sep 17 00:00:00 2001 From: Anderson Chauphan Date: Fri, 2 Feb 2024 16:15:38 -0700 Subject: [PATCH] Fix spacing to match the rest of the script (#600) Function used 4 spaces instead of 2. --- .../cdash_analyze_and_report_random_failures.py | 9 ++++----- 1 file changed, 4 insertions(+), 5 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 2b199a6a2..42f10d5ff 100755 --- a/tribits/ci_support/cdash_analyze_and_report_random_failures.py +++ b/tribits/ci_support/cdash_analyze_and_report_random_failures.py @@ -237,12 +237,11 @@ def getDateRangeTuple(referenceDateTime, dayTimeDelta): def getTopicTargetSha1s(buildConfigOutput): - pattern = r"Parent [12]:\n\s+(\w+)" - matchedList = regex.findall(pattern, buildConfigOutput) - - if len(matchedList) != 2: return None - return tuple(matchedList) + pattern = r"Parent [12]:\n\s+(\w+)" + matchedList = regex.findall(pattern, buildConfigOutput) + if len(matchedList) != 2: return None + return tuple(matchedList) def getBuildIdFromTest(test): return test['buildSummaryLink'].split("/")[-1]