aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLibravatar Reiner Herrmann <reiner@reiner-h.de>2021-01-30 12:44:09 +0100
committerLibravatar Reiner Herrmann <reiner@reiner-h.de>2021-02-03 17:52:16 +0100
commite55699f1245645cf0cdedc53628a40bd834eef76 (patch)
treefd06bbeeb9c82e1e35076f416036c3f8497f38b8
parenttemporary fix for profile tests (diff)
downloadfirejail-e55699f1245645cf0cdedc53628a40bd834eef76.tar.gz
firejail-e55699f1245645cf0cdedc53628a40bd834eef76.tar.zst
firejail-e55699f1245645cf0cdedc53628a40bd834eef76.zip
tests: improve check for sound capabilities (#3929)
Fixes: #3928 (cherry picked from commit af2375300c5a1697d2b5242fc11e6275788894b1)
-rwxr-xr-xtest/environment/environment.sh4
1 files 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-
70./firejail-in-firejail.exp 70./firejail-in-firejail.exp
71 71
72which aplay 2>/dev/null 72which aplay 2>/dev/null
73if [ "$?" -eq 0 ]; 73if [ "$?" -eq 0 ] && [ "$(aplay -l | grep -c "List of PLAYBACK")" -gt 0 ];
74then 74then
75 echo "TESTING: sound (test/environment/sound.exp)" 75 echo "TESTING: sound (test/environment/sound.exp)"
76 ./sound.exp 76 ./sound.exp
77else 77else
78 echo "TESTING SKIP: aplay not found" 78 echo "TESTING SKIP: no aplay or sound card found"
79fi 79fi
80 80
81echo "TESTING: nice (test/environment/nice.exp)" 81echo "TESTING: nice (test/environment/nice.exp)"