From 04bc014dfddd1298ae984a8632b41e0d77c9f556 Mon Sep 17 00:00:00 2001 From: Jordan Rose Date: Fri, 1 Jun 2012 16:24:43 +0000 Subject: [PATCH] [analyzer] SATestBuild should execute SVN updates even if Verbose is off. Also, re-use glob results when looking for failure logs. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@157817 91177308-0d34-0410-b5e6-96231b3b80d8 --- utils/analyzer/SATestBuild.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/utils/analyzer/SATestBuild.py b/utils/analyzer/SATestBuild.py index 35c0b74778..4b9d2eb60c 100755 --- a/utils/analyzer/SATestBuild.py +++ b/utils/analyzer/SATestBuild.py @@ -293,7 +293,7 @@ def checkBuild(SBOutputDir): FailuresCopied = NumOfFailuresInSummary Idx = 0 - for FailLogPathI in glob.glob(SBOutputDir + "/*/failures/*.stderr.txt"): + for FailLogPathI in Failures: if Idx >= NumOfFailuresInSummary: break; Idx += 1 @@ -380,7 +380,7 @@ def updateSVN(Mode, ProjectsMap): if Verbose == 1: print " Executing: %s" % (Command,) - check_call(Command, shell=True) + check_call(Command, shell=True) if Mode == "delete": CommitCommand = "svn commit -m \"[analyzer tests] Remove " \ @@ -390,7 +390,7 @@ def updateSVN(Mode, ProjectsMap): "reference results.\"" if Verbose == 1: print " Executing: %s" % (CommitCommand,) - check_call(CommitCommand, shell=True) + check_call(CommitCommand, shell=True) except: print "Error: SVN update failed." sys.exit(-1) -- 2.40.0