diff options
-rwxr-xr-x | test/environment/environment.sh | 4 |
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 | ||
72 | which aplay 2>/dev/null | 72 | which aplay 2>/dev/null |
73 | if [ "$?" -eq 0 ]; | 73 | if [ "$?" -eq 0 ] && [ "$(aplay -l | grep -c "List of PLAYBACK")" -gt 0 ]; |
74 | then | 74 | then |
75 | echo "TESTING: sound (test/environment/sound.exp)" | 75 | echo "TESTING: sound (test/environment/sound.exp)" |
76 | ./sound.exp | 76 | ./sound.exp |
77 | else | 77 | else |
78 | echo "TESTING SKIP: aplay not found" | 78 | echo "TESTING SKIP: no aplay or sound card found" |
79 | fi | 79 | fi |
80 | 80 | ||
81 | echo "TESTING: nice (test/environment/nice.exp)" | 81 | echo "TESTING: nice (test/environment/nice.exp)" |