From 7a5c2b205e4f0c3700f41f2ccd2b104476b8f026 Mon Sep 17 00:00:00 2001 From: a1346054 <36859588+a1346054@users.noreply.github.com> Date: Tue, 13 Sep 2022 20:21:21 +0000 Subject: tests: use bash-style [[...]] instead of [...] --- test/environment/environment.sh | 2 +- test/environment/output.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'test/environment') 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)" echo "TESTING: firejail in firejail - single sandbox (test/environment/firejail-in-firejail.exp)" ./firejail-in-firejail.exp -if command -v aplay && [ "$(aplay -l | grep -c "List of PLAYBACK")" -gt 0 ]; +if command -v aplay && [[ $(aplay -l | grep -c "List of PLAYBACK") -gt 0 ]] then echo "TESTING: sound (test/environment/sound.exp)" ./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 @@ i="0" -while [ $i -lt 150000 ] +while [[ $i -lt 150000 ]] do echo "message number $i" i=$((i+1)) -- cgit v1.2.3-54-g00ecf