summaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
authorGeorge Karpenkov <ekarpenkov@apple.com>2017-10-26 19:00:22 +0000
committerGeorge Karpenkov <ekarpenkov@apple.com>2017-10-26 19:00:22 +0000
commitbce8668f19401f4fc021a74f3fe323574476ed28 (patch)
tree16392e8850b04790f029b1cc8779050cca009eb0 /utils
parent639ed1da2f19d52e75fda5011c548223095d0b68 (diff)
[Analyzer] [Tests] Write analyzers crashes to stdout, and not to a separate file
With this change it would be sufficient to look at CI console to see the failure. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@316687 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils')
-rwxr-xr-xutils/analyzer/SATestBuild.py32
1 files changed, 12 insertions, 20 deletions
diff --git a/utils/analyzer/SATestBuild.py b/utils/analyzer/SATestBuild.py
index 74a5f6ebda..6f4ef2824b 100755
--- a/utils/analyzer/SATestBuild.py
+++ b/utils/analyzer/SATestBuild.py
@@ -450,29 +450,21 @@ def checkBuild(SBOutputDir):
len(Plists)
return
- # Create summary file to display when the build fails.
- SummaryPath = os.path.join(
- SBOutputDir, LogFolderName, FailuresSummaryFileName)
- if (Verbose > 0):
- print " Creating the failures summary file %s" % (SummaryPath,)
-
- with open(SummaryPath, "w+") as SummaryLog:
- SummaryLog.write("Total of %d failures discovered.\n" % (TotalFailed,))
- if TotalFailed > NumOfFailuresInSummary:
- SummaryLog.write("See the first %d below.\n" % (
- NumOfFailuresInSummary,))
+ print "Error: analysis failed."
+ print "Total of %d failures discovered." % TotalFailed
+ if TotalFailed > NumOfFailuresInSummary:
+ print "See the first %d below.\n" % NumOfFailuresInSummary
# TODO: Add a line "See the results folder for more."
- Idx = 0
- for FailLogPathI in Failures:
- if Idx >= NumOfFailuresInSummary:
- break
- Idx += 1
- SummaryLog.write("\n-- Error #%d -----------\n" % (Idx,))
- with open(FailLogPathI, "r") as FailLogI:
- shutil.copyfileobj(FailLogI, SummaryLog)
+ Idx = 0
+ for FailLogPathI in Failures:
+ if Idx >= NumOfFailuresInSummary:
+ break
+ Idx += 1
+ print "\n-- Error #%d -----------\n" % Idx
+ with open(FailLogPathI, "r") as FailLogI:
+ shutil.copyfileobj(FailLogI, sys.stdout)
- print "Error: analysis failed. See ", SummaryPath
sys.exit(1)