diff --git a/scripts/scrapeForIntermittents.py b/scripts/scrapeForIntermittents.py index c072402e9865..da60b7429d6a 100755 --- a/scripts/scrapeForIntermittents.py +++ b/scripts/scrapeForIntermittents.py @@ -157,17 +157,20 @@ def extract_failed_tests_info(): if ("Test Result" in each_line) and ("failure" in each_line): # the next few lines will contain failed tests temp = each_line.split("testReport") if ("Test Result" in temp[1]) and ("failure" in temp[1]): # grab number of failed tests - tempCount = int(temp[1].split("")[1].split(" ")[0].split("(")[1]) - - if isinstance(tempCount, int) and tempCount > 0: # temp[1], temp[2],... should contain failed tests - for findex in range(2,len(temp)): - tempMess = temp[findex].split(">") - g_failed_test_paths.append(tempMess[0].strip('"')) - ftestname = tempMess[1].strip("")[1].split(" ")[0].split("(")[1]) + + if isinstance(tempCount, int) and tempCount > 0: # temp[1], temp[2],... should contain failed tests + for findex in range(2,len(temp)): + tempMess = temp[findex].split(">") + g_failed_test_paths.append(tempMess[0].strip('"')) + ftestname = tempMess[1].strip("