]> granicus.if.org Git - clang/commitdiff
[Analyzer] [Tests] Fixing typo from the previous commit.
authorGeorge Karpenkov <ekarpenkov@apple.com>
Fri, 27 Oct 2017 22:52:36 +0000 (22:52 +0000)
committerGeorge Karpenkov <ekarpenkov@apple.com>
Fri, 27 Oct 2017 22:52:36 +0000 (22:52 +0000)
Can not open a non-existent file with r+.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@316808 91177308-0d34-0410-b5e6-96231b3b80d8

utils/analyzer/SATestBuild.py

index ed700c0c8eb9f4f42c89cc56b19eeeadebe0f763..3c694fb03896192f07874f6f7c4f53d3853ef66d 100755 (executable)
@@ -374,7 +374,7 @@ def buildProject(Dir, SBOutputDir, ProjectBuildMode, IsReferenceBuild):
     os.makedirs(os.path.join(SBOutputDir, LogFolderName))
 
     # Build and analyze the project.
-    with open(BuildLogPath, "r+b") as PBuildLogFile:
+    with open(BuildLogPath, "wb+") as PBuildLogFile:
         if (ProjectBuildMode == 1):
             downloadAndPatch(Dir, PBuildLogFile)
             runCleanupScript(Dir, PBuildLogFile)