Add debug info to low bw test.

Bug: chromium:1029452
Tbr: mbonadei@webrtc.org
Change-Id: I7685dd9a2bb5ad1333836603ee8f8f7b10553179
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/171804
Reviewed-by: Patrik Höglund <phoglund@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#30900}
This commit is contained in:
Patrik Höglund
2020-03-26 11:59:36 +01:00
parent e58707340a
commit 324646626f

View File

@ -233,6 +233,14 @@ def _ConfigurePythonPath(args):
args.build_dir, 'pyproto', 'tracing', 'tracing', 'proto')
sys.path.insert(0, histogram_proto_path)
logging.info('Contents of build dir:')
logging.info(str(os.listdir(args.build_dir)))
for root, dirs, files in os.walk(os.path.join(args.build_dir, 'pyproto')):
path = root.split(os.sep)
logging.info((len(path) - 1) * '---' + os.path.basename(root))
for file in files:
logging.info(len(path) * '---' + file)
# Fail early in case the proto hasn't been built.
from tracing.proto import histogram_proto
if not histogram_proto.HAS_PROTO:
@ -245,6 +253,7 @@ def _ConfigurePythonPath(args):
def main():
# pylint: disable=W0101
logging.basicConfig(level=logging.INFO)
logging.info('Invoked with %s', str(sys.argv))
args = _ParseArgs()