aboutsummaryrefslogtreecommitdiffstats
path: root/test/environment
diff options
context:
space:
mode:
authorLibravatar a1346054 <36859588+a1346054@users.noreply.github.com>2022-09-13 20:21:21 +0000
committerLibravatar a1346054 <36859588+a1346054@users.noreply.github.com>2022-09-13 22:37:20 +0000
commit7a5c2b205e4f0c3700f41f2ccd2b104476b8f026 (patch)
tree1a4f33f8d68139a6bdac2657ed2e9860efc194d6 /test/environment
parenttests: stop mixing tabs and spaces (diff)
downloadfirejail-7a5c2b205e4f0c3700f41f2ccd2b104476b8f026.tar.gz
firejail-7a5c2b205e4f0c3700f41f2ccd2b104476b8f026.tar.zst
firejail-7a5c2b205e4f0c3700f41f2ccd2b104476b8f026.zip
tests: use bash-style [[...]] instead of [...]
Diffstat (limited to 'test/environment')
-rwxr-xr-xtest/environment/environment.sh2
-rwxr-xr-xtest/environment/output.sh2
2 files changed, 2 insertions, 2 deletions
diff --git a/test/environment/environment.sh b/test/environment/environment.sh
index ddc9a80a9..c88c91741 100755
--- a/test/environment/environment.sh
+++ b/test/environment/environment.sh
@@ -38,7 +38,7 @@ echo "TESTING: environment variables (test/environment/env.exp)"
38echo "TESTING: firejail in firejail - single sandbox (test/environment/firejail-in-firejail.exp)" 38echo "TESTING: firejail in firejail - single sandbox (test/environment/firejail-in-firejail.exp)"
39./firejail-in-firejail.exp 39./firejail-in-firejail.exp
40 40
41if command -v aplay && [ "$(aplay -l | grep -c "List of PLAYBACK")" -gt 0 ]; 41if command -v aplay && [[ $(aplay -l | grep -c "List of PLAYBACK") -gt 0 ]]
42then 42then
43 echo "TESTING: sound (test/environment/sound.exp)" 43 echo "TESTING: sound (test/environment/sound.exp)"
44 ./sound.exp 44 ./sound.exp
diff --git a/test/environment/output.sh b/test/environment/output.sh
index 0872dc276..ba06f9184 100755
--- a/test/environment/output.sh
+++ b/test/environment/output.sh
@@ -5,7 +5,7 @@
5 5
6i="0" 6i="0"
7 7
8while [ $i -lt 150000 ] 8while [[ $i -lt 150000 ]]
9do 9do
10 echo "message number $i" 10 echo "message number $i"
11 i=$((i+1)) 11 i=$((i+1))