aboutsummaryrefslogtreecommitdiffstats
path: root/test/fs
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/fs
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/fs')
-rwxr-xr-xtest/fs/fs.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/fs/fs.sh b/test/fs/fs.sh
index 07d33bee6..697c86d3d 100755
--- a/test/fs/fs.sh
+++ b/test/fs/fs.sh
@@ -34,7 +34,7 @@ rm -f ~/_firejail_test_dir
34echo "TESTING: /sys/fs access (test/fs/sys_fs.exp)" 34echo "TESTING: /sys/fs access (test/fs/sys_fs.exp)"
35./sys_fs.exp 35./sys_fs.exp
36 36
37if [ -c /dev/kmsg ]; then 37if [[ -c /dev/kmsg ]]; then
38 echo "TESTING: kmsg access (test/fs/kmsg.exp)" 38 echo "TESTING: kmsg access (test/fs/kmsg.exp)"
39 ./kmsg.exp 39 ./kmsg.exp
40else 40else
@@ -45,7 +45,7 @@ echo "TESTING: read/write /var/tmp (test/fs/fs_var_tmp.exp)"
45./fs_var_tmp.exp 45./fs_var_tmp.exp
46rm -f /var/tmp/_firejail_test_file 46rm -f /var/tmp/_firejail_test_file
47 47
48if [ "$(uname -m)" = "x86_64" ]; then 48if [[ $(uname -m) == "x86_64" ]]; then
49 fjconfig=/etc/firejail/firejail.config 49 fjconfig=/etc/firejail/firejail.config
50 printf 'private-lib yes\n' | sudo tee -a "$fjconfig" >/dev/null 50 printf 'private-lib yes\n' | sudo tee -a "$fjconfig" >/dev/null
51 echo "TESTING: private-lib (test/fs/private-lib.exp)" 51 echo "TESTING: private-lib (test/fs/private-lib.exp)"
@@ -60,7 +60,7 @@ echo "TESTING: read/write /var/lock (test/fs/fs_var_lock.exp)"
60./fs_var_lock.exp 60./fs_var_lock.exp
61rm -f /var/lock/_firejail_test_file 61rm -f /var/lock/_firejail_test_file
62 62
63if [ -w /dev/shm ]; then 63if [[ -w /dev/shm ]]; then
64 echo "TESTING: read/write /dev/shm (test/fs/fs_dev_shm.exp)" 64 echo "TESTING: read/write /dev/shm (test/fs/fs_dev_shm.exp)"
65 ./fs_dev_shm.exp 65 ./fs_dev_shm.exp
66 rm -f /dev/shm/_firejail_test_file 66 rm -f /dev/shm/_firejail_test_file