]> www.infradead.org Git - users/jedix/linux-maple.git/commit
kselftest/alsa: Use card name rather than number in test names
authorMark Brown <broonie@kernel.org>
Tue, 16 Jul 2024 14:47:59 +0000 (15:47 +0100)
committerTakashi Iwai <tiwai@suse.de>
Thu, 18 Jul 2024 14:47:34 +0000 (16:47 +0200)
commitb1a7b97aa534b031f929ba4bf70d2e869b117c9d
tree113db2adaf00276dac292a777629ca136ee56121
parentd7063c08738573fc2f3296da6d31a22fa8aa843a
kselftest/alsa: Use card name rather than number in test names

Currently for the PCM and mixer tests we report test names which identify
the card being tested with the card number. This ensures we have unique
names but since card numbers are dynamically assigned at runtime the names
we end up with will often not be stable on systems with multiple cards
especially where those cards are provided by separate modules loeaded at
runtime. This makes it difficult for automated systems and UIs to relate
test results between runs on affected platforms.

Address this by replacing our use of card numbers with card names which are
more likely to be stable across runs. We use the card ID since it is
guaranteed to be unique by default, unlike the long name. There is still
some vulnerability to ordering issues if multiple cards with the same base
ID are present in the system but have separate dependencies but not all
drivers put distinguishing information in their long names.

Signed-off-by: Mark Brown <broonie@kernel.org>
Link: https://patch.msgid.link/20240716-alsa-kselftest-board-name-v2-1-60f1acdde096@kernel.org
Signed-off-by: Takashi Iwai <tiwai@suse.de>
tools/testing/selftests/alsa/mixer-test.c
tools/testing/selftests/alsa/pcm-test.c