diff options
author | George Karpenkov <ekarpenkov@apple.com> | 2017-09-22 22:58:46 +0000 |
---|---|---|
committer | George Karpenkov <ekarpenkov@apple.com> | 2017-09-22 22:58:46 +0000 |
commit | 439a95bde703cf5afb964e6a5d56137e362685f6 (patch) | |
tree | 80e2fb7a3c7a2b8f2589a9706a1e9ac85ac47ead /clang/utils/analyzer/SATestUpdateDiffs.py | |
parent | 15d7e604d95f2e5931af207c692bbc48440cec6b (diff) | |
download | bcm5719-llvm-439a95bde703cf5afb964e6a5d56137e362685f6.tar.gz bcm5719-llvm-439a95bde703cf5afb964e6a5d56137e362685f6.zip |
[Analyzer] Fix minor errors in python scripts.
llvm-svn: 314042
Diffstat (limited to 'clang/utils/analyzer/SATestUpdateDiffs.py')
-rwxr-xr-x | clang/utils/analyzer/SATestUpdateDiffs.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/clang/utils/analyzer/SATestUpdateDiffs.py b/clang/utils/analyzer/SATestUpdateDiffs.py index 994fd1f0749..df836b10f84 100755 --- a/clang/utils/analyzer/SATestUpdateDiffs.py +++ b/clang/utils/analyzer/SATestUpdateDiffs.py @@ -4,8 +4,9 @@ Update reference results for static analyzer. """ -from subprocess import check_call, check_output, CalledProcessError -import csv +import SATestBuild + +from subprocess import check_call import os import sys @@ -35,8 +36,7 @@ def updateReferenceResults(ProjName, ProjBuildMode): runCmd('cp -r "%s" "%s"' % (CreatedResultsPath, RefResultsPath,)) # Run cleanup script. - with open(SATestBuild.getBuildLogPath(RefResultsPath), "wb+") - as PBuildLogFile: + with open(SATestBuild.getBuildLogPath(RefResultsPath), "wb+") as PBuildLogFile: SATestBuild.runCleanupScript(ProjDir, PBuildLogFile) SATestBuild.normalizeReferenceResults(ProjDir, RefResultsPath, ProjBuildMode) @@ -52,7 +52,7 @@ def updateReferenceResults(ProjName, ProjBuildMode): def main(argv): if len(argv) == 2 and argv[1] in ('-h', '--help'): print >> sys.stderr, "Update static analyzer reference results based "\ - "\non the previous run of SATestBuild.py.\n" + "\non the previous run of SATestBuild.py.\n"\ "\nN.B.: Assumes that SATestBuild.py was just run." sys.exit(-1) |