From e55699f1245645cf0cdedc53628a40bd834eef76 Mon Sep 17 00:00:00 2001 From: Reiner Herrmann Date: Sat, 30 Jan 2021 12:44:09 +0100 Subject: tests: improve check for sound capabilities (#3929) Fixes: #3928 (cherry picked from commit af2375300c5a1697d2b5242fc11e6275788894b1) --- test/environment/environment.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/environment/environment.sh b/test/environment/environment.sh index e88036d3d..0706cbd88 100755 --- a/test/environment/environment.sh +++ b/test/environment/environment.sh @@ -70,12 +70,12 @@ echo "TESTING: firejail in firejail - single sandbox (test/environment/firejail- ./firejail-in-firejail.exp which aplay 2>/dev/null -if [ "$?" -eq 0 ]; +if [ "$?" -eq 0 ] && [ "$(aplay -l | grep -c "List of PLAYBACK")" -gt 0 ]; then echo "TESTING: sound (test/environment/sound.exp)" ./sound.exp else - echo "TESTING SKIP: aplay not found" + echo "TESTING SKIP: no aplay or sound card found" fi echo "TESTING: nice (test/environment/nice.exp)" -- cgit v1.2.3-54-g00ecf