From: George Karpenkov Date: Fri, 27 Oct 2017 22:52:36 +0000 (+0000) Subject: [Analyzer] [Tests] Fixing typo from the previous commit. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b26cd8eec627bf081f512d7f65baed6d0ecd1b91;p=clang [Analyzer] [Tests] Fixing typo from the previous commit. 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 --- diff --git a/utils/analyzer/SATestBuild.py b/utils/analyzer/SATestBuild.py index ed700c0c8e..3c694fb038 100755 --- a/utils/analyzer/SATestBuild.py +++ b/utils/analyzer/SATestBuild.py @@ -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)