From b26cd8eec627bf081f512d7f65baed6d0ecd1b91 Mon Sep 17 00:00:00 2001 From: George Karpenkov Date: Fri, 27 Oct 2017 22:52:36 +0000 Subject: [PATCH] [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 --- utils/analyzer/SATestBuild.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- 2.40.0