aboutsummaryrefslogtreecommitdiffstats
path: root/test/utils
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/utils
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/utils')
-rwxr-xr-xtest/utils/utils.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/utils/utils.sh b/test/utils/utils.sh
index d1d006f4f..647cbfb34 100755
--- a/test/utils/utils.sh
+++ b/test/utils/utils.sh
@@ -7,7 +7,7 @@ export MALLOC_CHECK_=3
7export MALLOC_PERTURB_=$(($RANDOM % 255 + 1)) 7export MALLOC_PERTURB_=$(($RANDOM % 255 + 1))
8export LC_ALL=C 8export LC_ALL=C
9 9
10if [ -f /etc/debian_version ]; then 10if [[ -f /etc/debian_version ]]; then
11 libdir=$(dirname "$(dpkg -L firejail | grep fcopy)") 11 libdir=$(dirname "$(dpkg -L firejail | grep fcopy)")
12 export PATH="$PATH:$libdir" 12 export PATH="$PATH:$libdir"
13fi 13fi
@@ -47,7 +47,7 @@ echo "TESTING: list (test/utils/list.exp)"
47echo "TESTING: tree (test/utils/tree.exp)" 47echo "TESTING: tree (test/utils/tree.exp)"
48./tree.exp 48./tree.exp
49 49
50if [ $(grep -c ^processor /proc/cpuinfo) -gt 1 ]; 50if [[ $(grep -c ^processor /proc/cpuinfo) -gt 1 ]]
51then 51then
52 echo "TESTING: cpu.print (test/utils/cpu-print.exp)" 52 echo "TESTING: cpu.print (test/utils/cpu-print.exp)"
53 ./cpu-print.exp 53 ./cpu-print.exp