From 324646626feb5ff64392dcf8149ceec09071273c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Patrik=20H=C3=B6glund?= Date: Thu, 26 Mar 2020 11:59:36 +0100 Subject: [PATCH] Add debug info to low bw test. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 Cr-Commit-Position: refs/heads/master@{#30900} --- audio/test/low_bandwidth_audio_test.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/audio/test/low_bandwidth_audio_test.py b/audio/test/low_bandwidth_audio_test.py index 0744889c64..c048098f73 100755 --- a/audio/test/low_bandwidth_audio_test.py +++ b/audio/test/low_bandwidth_audio_test.py @@ -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()