diff options
author | a1346054 <36859588+a1346054@users.noreply.github.com> | 2022-09-13 20:21:21 +0000 |
---|---|---|
committer | a1346054 <36859588+a1346054@users.noreply.github.com> | 2022-09-13 22:37:20 +0000 |
commit | 7a5c2b205e4f0c3700f41f2ccd2b104476b8f026 (patch) | |
tree | 1a4f33f8d68139a6bdac2657ed2e9860efc194d6 /test/environment | |
parent | tests: stop mixing tabs and spaces (diff) | |
download | firejail-7a5c2b205e4f0c3700f41f2ccd2b104476b8f026.tar.gz firejail-7a5c2b205e4f0c3700f41f2ccd2b104476b8f026.tar.zst firejail-7a5c2b205e4f0c3700f41f2ccd2b104476b8f026.zip |
tests: use bash-style [[...]] instead of [...]
Diffstat (limited to 'test/environment')
-rwxr-xr-x | test/environment/environment.sh | 2 | ||||
-rwxr-xr-x | test/environment/output.sh | 2 |
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)" | |||
38 | echo "TESTING: firejail in firejail - single sandbox (test/environment/firejail-in-firejail.exp)" | 38 | echo "TESTING: firejail in firejail - single sandbox (test/environment/firejail-in-firejail.exp)" |
39 | ./firejail-in-firejail.exp | 39 | ./firejail-in-firejail.exp |
40 | 40 | ||
41 | if command -v aplay && [ "$(aplay -l | grep -c "List of PLAYBACK")" -gt 0 ]; | 41 | if command -v aplay && [[ $(aplay -l | grep -c "List of PLAYBACK") -gt 0 ]] |
42 | then | 42 | then |
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 | ||
6 | i="0" | 6 | i="0" |
7 | 7 | ||
8 | while [ $i -lt 150000 ] | 8 | while [[ $i -lt 150000 ]] |
9 | do | 9 | do |
10 | echo "message number $i" | 10 | echo "message number $i" |
11 | i=$((i+1)) | 11 | i=$((i+1)) |