aboutsummaryrefslogtreecommitdiff
path: root/utils/analyzer
diff options
context:
space:
mode:
authorAnna Zaks <ganna@apple.com>2012-01-24 21:57:35 +0000
committerAnna Zaks <ganna@apple.com>2012-01-24 21:57:35 +0000
commit2c3038edc2a691b2462ef4bc7fae8f4c9a494154 (patch)
tree8bcfc90982c91f6010b00dc2920099ca6d7cde4f /utils/analyzer
parentab2d46eb04a44580e6a2e670e4d91557fe78fae6 (diff)
[analyzer] Add the HTML file to the SATest diagnostic diff.
(Uses the functionality which has been in CmpRuns long before.) git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@148868 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils/analyzer')
-rwxr-xr-xutils/analyzer/CmpRuns.py7
-rwxr-xr-xutils/analyzer/SATestBuild.py2
2 files changed, 5 insertions, 4 deletions
diff --git a/utils/analyzer/CmpRuns.py b/utils/analyzer/CmpRuns.py
index 6d4be71299..e68c45df18 100755
--- a/utils/analyzer/CmpRuns.py
+++ b/utils/analyzer/CmpRuns.py
@@ -77,9 +77,10 @@ class AnalysisDiagnostic:
def getReportData(self):
if self.htmlReport is None:
return " "
-
- return open(os.path.join(self.report.run.path,
- self.htmlReport), "rb").read()
+ return os.path.join(self.report.run.path, self.htmlReport)
+ # We could also dump the report with:
+ # return open(os.path.join(self.report.run.path,
+ # self.htmlReport), "rb").read()
class AnalysisRun:
def __init__(self, path, opts):
diff --git a/utils/analyzer/SATestBuild.py b/utils/analyzer/SATestBuild.py
index a45263b15c..ce64ae45d7 100755
--- a/utils/analyzer/SATestBuild.py
+++ b/utils/analyzer/SATestBuild.py
@@ -132,7 +132,7 @@ def runScanBuild(Dir, SBOutputDir, PBuildLogFile):
if not os.path.exists(BuildScriptPath):
print "Error: build script is not defined: %s" % BuildScriptPath
sys.exit(-1)
- SBOptions = "-plist -o " + SBOutputDir + " "
+ SBOptions = "-plist-html -o " + SBOutputDir + " "
SBOptions += "-enable-checker " + Checkers + " "
try:
SBCommandFile = open(BuildScriptPath, "r")