Skip to content
Snippets Groups Projects
Commit 56635e1e authored by George Karpenkov's avatar George Karpenkov
Browse files

[Analyzer] Fix minor errors in python scripts.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@314042 91177308-0d34-0410-b5e6-96231b3b80d8
parent dd94e045
No related branches found
No related tags found
No related merge requests found
......@@ -485,7 +485,6 @@ def checkBuild(SBOutputDir):
% (NumOfFailuresInSummary,))
# TODO: Add a line "See the results folder for more."
FailuresCopied = NumOfFailuresInSummary
Idx = 0
for FailLogPathI in Failures:
if Idx >= NumOfFailuresInSummary:
......
......@@ -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)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment