Log more info for loopback latency test.
Modify audio_helper to retain output for loopback check.
Also print measured & reported latency to error message.
After this change we can look more into the failures from
test dashboard.
BUG=chromium:221496
TEST=Manual run audiovideo_LoopbackLatency, see detail of
loopback_latency logged. And latency values printed when
test fails.
Change-Id: Ifca5e8bac1c65bc63f5d01c264a0bee5ffc3f19c
Reviewed-on: https://gerrit.chromium.org/gerrit/48212
Reviewed-by: Dylan Reid <dgreid@chromium.org>
Commit-Queue: Hsinyu Chao <hychao@chromium.org>
Tested-by: Hsinyu Chao <hychao@chromium.org>
diff --git a/client/cros/audio/audio_helper.py b/client/cros/audio/audio_helper.py
index 9634c37..f64dd32 100644
--- a/client/cros/audio/audio_helper.py
+++ b/client/cros/audio/audio_helper.py
@@ -389,7 +389,7 @@
cmd = '%s -n %s' % (self.loopback_latency_path, noise_threshold)
- output = utils.system_output(cmd)
+ output = utils.system_output(cmd, retain_output=True)
# Sleep for a short while to make sure device is not busy anymore
# after called loopback_latency.