Skip to content
This repository was archived by the owner on Nov 1, 2021. It is now read-only.

Commit 56635e1

Browse files
author
George Karpenkov
committed
[Analyzer] Fix minor errors in python scripts.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@314042 91177308-0d34-0410-b5e6-96231b3b80d8
1 parent dd94e04 commit 56635e1

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

utils/analyzer/SATestBuild.py

-1
Original file line numberDiff line numberDiff line change
@@ -485,7 +485,6 @@ def checkBuild(SBOutputDir):
485485
% (NumOfFailuresInSummary,))
486486
# TODO: Add a line "See the results folder for more."
487487

488-
FailuresCopied = NumOfFailuresInSummary
489488
Idx = 0
490489
for FailLogPathI in Failures:
491490
if Idx >= NumOfFailuresInSummary:

utils/analyzer/SATestUpdateDiffs.py

+5-5
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,9 @@
44
Update reference results for static analyzer.
55
"""
66

7-
from subprocess import check_call, check_output, CalledProcessError
8-
import csv
7+
import SATestBuild
8+
9+
from subprocess import check_call
910
import os
1011
import sys
1112

@@ -35,8 +36,7 @@ def updateReferenceResults(ProjName, ProjBuildMode):
3536
runCmd('cp -r "%s" "%s"' % (CreatedResultsPath, RefResultsPath,))
3637

3738
# Run cleanup script.
38-
with open(SATestBuild.getBuildLogPath(RefResultsPath), "wb+")
39-
as PBuildLogFile:
39+
with open(SATestBuild.getBuildLogPath(RefResultsPath), "wb+") as PBuildLogFile:
4040
SATestBuild.runCleanupScript(ProjDir, PBuildLogFile)
4141

4242
SATestBuild.normalizeReferenceResults(ProjDir, RefResultsPath, ProjBuildMode)
@@ -52,7 +52,7 @@ def updateReferenceResults(ProjName, ProjBuildMode):
5252
def main(argv):
5353
if len(argv) == 2 and argv[1] in ('-h', '--help'):
5454
print >> sys.stderr, "Update static analyzer reference results based "\
55-
"\non the previous run of SATestBuild.py.\n"
55+
"\non the previous run of SATestBuild.py.\n"\
5656
"\nN.B.: Assumes that SATestBuild.py was just run."
5757
sys.exit(-1)
5858

0 commit comments

Comments
 (0)