Commit eb2dad90 authored by timurrrr@chromium.org's avatar timurrrr@chromium.org

TSan: print error reports to stdout instead of stderr

This is needed for the Windows bots to have the suppression hashes available in
the build view as unique failures.
TBR=glider
Review URL: http://codereview.chromium.org/8816016

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@113190 0039d316-1c4b-4281-b951-d872f2087c98
parent ccf2231b
......@@ -236,8 +236,10 @@ class TsanAnalyzer(object):
retcode = 0
if reports:
logging.error("FAIL! Found %i report(s)" % len(reports))
sys.stderr.flush()
for report in reports:
logging.error('\n' + report)
logging.info('\n' + report)
sys.stdout.flush()
retcode = -1
# Report tool's insanity even if there were errors.
......@@ -265,6 +267,7 @@ def main():
parser.error("no filename specified")
filenames = args
logging.getLogger().setLevel(logging.INFO)
analyzer = TsanAnalyzer(options.source_dir, use_gdb=True)
return analyzer.Report(filenames, None)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment