Commit 5bea452c authored by Ramin Halavati's avatar Ramin Halavati Committed by Commit Bot

Add debug data for Traffic Annotation FYI bot.

Traffic annotations FYI bot cannot access some files in build_path/gen.
Some Debug data is added to find out why?

TBR=msramek

Bug: 690323
Change-Id: I4fb716d8b843704bf48cfbb62d5b09a3791eb732
Reviewed-on: https://chromium-review.googlesource.com/966303Reviewed-by: default avatarRamin Halavati <rhalavati@chromium.org>
Commit-Queue: Ramin Halavati <rhalavati@chromium.org>
Cr-Commit-Position: refs/heads/master@{#543702}
parent 0c9efabd
......@@ -9,13 +9,14 @@
import os
import argparse
import sys
import subprocess
from annotation_tools import NetworkTrafficAnnotationTools
# If this test starts failing, please set TEST_IS_ENABLED to "False" and file a
# bug to get this reenabled, and cc the people listed in
# //tools/traffic_annotation/OWNERS.
TEST_IS_ENABLED = False
TEST_IS_ENABLED = True
class TrafficAnnotationTestsChecker():
......@@ -43,6 +44,13 @@ class TrafficAnnotationTestsChecker():
print(stderr_text)
return return_code
# TODO(rhalavati): Remove this code.
def RunDiagnostics(build_path):
subprocess.call(["ls", os.path.join(build_path, "gen")])
print("---")
subprocess.call(["ls", os.path.join(build_path,
"gen/net/data/ssl/certificates")])
def main():
if not TEST_IS_ENABLED:
......@@ -57,6 +65,9 @@ def main():
'found.')
args = parser.parse_args()
RunDiagnostics(args.build_path)
return 0
checker = TrafficAnnotationTestsChecker(args.build_path)
return checker.RunAllTests()
......
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