Commit 29ea232d authored by Ramin Halavati's avatar Ramin Halavati Committed by Commit Bot

Add debug data to traffic_annotation_auditor_tests.

Debug data is added to traffic_annotation_auditor_test to search for
win-annotator-rel FYI bot bug.

Bug: 844014
Change-Id: Ie0a8b34cb725b02fad08fbdc4e0918d373b9e1a7
TBR: georgesak@chromium.org
Reviewed-on: https://chromium-review.googlesource.com/1123832Reviewed-by: default avatarRamin Halavati <rhalavati@chromium.org>
Commit-Queue: Ramin Halavati <rhalavati@chromium.org>
Cr-Commit-Position: refs/heads/master@{#572166}
parent 54cce18d
...@@ -91,6 +91,9 @@ class TrafficAnnotationTestsChecker(): ...@@ -91,6 +91,9 @@ class TrafficAnnotationTestsChecker():
_, stderr_text, return_code = self.tools.RunAuditor( _, stderr_text, return_code = self.tools.RunAuditor(
args + ["--annotations-file=%s" % temp_filename]) args + ["--annotations-file=%s" % temp_filename])
# TODO(https://crbug.com/844014): Remove after debugging.
print("Return Code: %i" % return_code)
print("File Exists: %i" % os.path.exists(temp_filename))
if os.path.exists(temp_filename): if os.path.exists(temp_filename):
annotations = None if return_code else open(temp_filename).read() annotations = None if return_code else open(temp_filename).read()
os.remove(temp_filename) os.remove(temp_filename)
......
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