[igt-dev] [PATCH i-g-t] tests/kms_chamelium: print audio sub-sub-test results
Simon Ser
simon.ser at intel.com
Tue May 21 13:35:33 UTC 2019
We run multiple audio sub-sub-tests inside the same sub-test to save a modeset.
With the current output it's not clear whether a particular sub-sub-test
succeeded or not.
After a sub-sub-test has completed, print its configuration (format, channels,
sampling rate) and its result.
Signed-off-by: Simon Ser <simon.ser at intel.com>
---
tests/kms_chamelium.c | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/tests/kms_chamelium.c b/tests/kms_chamelium.c
index f4fe38459dd9..8da6ec20759e 100644
--- a/tests/kms_chamelium.c
+++ b/tests/kms_chamelium.c
@@ -1033,6 +1033,12 @@ do_test_display_audio(data_t *data, struct chamelium_port *port,
alsa_close_output(alsa);
+ igt_debug("Audio test result for format %s, sampling rate %d Hz and "
+ "%d channels: %s\n",
+ snd_pcm_format_name(playback_format),
+ playback_rate, playback_channels,
+ success ? "ALL GREEN" : "FAILED");
+
if (dump_fd >= 0) {
close(dump_fd);
if (success) {
--
2.21.0
More information about the igt-dev
mailing list