]> granicus.if.org Git - clang/commitdiff
[analyzer] SATestBuild should execute SVN updates even if Verbose is off.
authorJordan Rose <jordan_rose@apple.com>
Fri, 1 Jun 2012 16:24:43 +0000 (16:24 +0000)
committerJordan Rose <jordan_rose@apple.com>
Fri, 1 Jun 2012 16:24:43 +0000 (16:24 +0000)
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

index 35c0b7477818c48557cd39644c6325fa8ab73a2e..4b9d2eb60c838e725885078032d8c721dcf86375 100755 (executable)
@@ -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)