aboutsummaryrefslogtreecommitdiffstats
path: root/test/root
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/root
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/root')
-rwxr-xr-xtest/root/root.sh10
1 files changed, 5 insertions, 5 deletions
diff --git a/test/root/root.sh b/test/root/root.sh
index 15c4bbd13..a39525b6e 100755
--- a/test/root/root.sh
+++ b/test/root/root.sh
@@ -24,7 +24,7 @@ fi
24#******************************** 24#********************************
25# servers 25# servers
26#******************************** 26#********************************
27if [ -f /etc/init.d/snmpd ] 27if [[ -f /etc/init.d/snmpd ]]
28then 28then
29 echo "TESTING: snmpd (test/root/snmpd.exp)" 29 echo "TESTING: snmpd (test/root/snmpd.exp)"
30 ./snmpd.exp 30 ./snmpd.exp
@@ -33,7 +33,7 @@ else
33fi 33fi
34 34
35 35
36if [ -f /etc/init.d/apache2 ] 36if [[ -f /etc/init.d/apache2 ]]
37then 37then
38 echo "TESTING: apache2 (test/root/apache2.exp)" 38 echo "TESTING: apache2 (test/root/apache2.exp)"
39 ./apache2.exp 39 ./apache2.exp
@@ -41,7 +41,7 @@ else
41 echo "TESTING SKIP: apache2 not found" 41 echo "TESTING SKIP: apache2 not found"
42fi 42fi
43 43
44if [ -f /etc/init.d/isc-dhcp-server ] 44if [[ -f /etc/init.d/isc-dhcp-server ]]
45then 45then
46 echo "TESTING: isc dhcp server (test/root/isc-dhscp.exp)" 46 echo "TESTING: isc dhcp server (test/root/isc-dhscp.exp)"
47 ./isc-dhcp.exp 47 ./isc-dhcp.exp
@@ -49,7 +49,7 @@ else
49 echo "TESTING SKIP: isc dhcp server not found" 49 echo "TESTING SKIP: isc dhcp server not found"
50fi 50fi
51 51
52if [ -f /etc/init.d/unbound ] 52if [[ -f /etc/init.d/unbound ]]
53then 53then
54 echo "TESTING: unbound (test/root/unbound.exp)" 54 echo "TESTING: unbound (test/root/unbound.exp)"
55 ./unbound.exp 55 ./unbound.exp
@@ -57,7 +57,7 @@ else
57 echo "TESTING SKIP: unbound not found" 57 echo "TESTING SKIP: unbound not found"
58fi 58fi
59 59
60if [ -f /etc/init.d/nginx ] 60if [[ -f /etc/init.d/nginx ]]
61then 61then
62 echo "TESTING: nginx (test/root/nginx.exp)" 62 echo "TESTING: nginx (test/root/nginx.exp)"
63 ./nginx.exp 63 ./nginx.exp