summaryrefslogtreecommitdiffstats
path: root/utils
diff options
context:
space:
mode:
authorGeorge Karpenkov <ekarpenkov@apple.com>2017-10-27 22:52:36 +0000
committerGeorge Karpenkov <ekarpenkov@apple.com>2017-10-27 22:52:36 +0000
commitb26cd8eec627bf081f512d7f65baed6d0ecd1b91 (patch)
tree578a130d6ad148f8a31fa0e1d8446e3f3e6a6d62 /utils
parentc124c77b3b52e2d04aed181a426f1971cb1614e4 (diff)
[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
Diffstat (limited to 'utils')
-rwxr-xr-xutils/analyzer/SATestBuild.py2
1 files changed, 1 insertions, 1 deletions
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)