aboutsummaryrefslogtreecommitdiffstats
path: root/test/fs/whitelist-readonly.exp
diff options
context:
space:
mode:
Diffstat (limited to 'test/fs/whitelist-readonly.exp')
-rwxr-xr-xtest/fs/whitelist-readonly.exp10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/fs/whitelist-readonly.exp b/test/fs/whitelist-readonly.exp
index e5c9cc400..f9d78b7c0 100755
--- a/test/fs/whitelist-readonly.exp
+++ b/test/fs/whitelist-readonly.exp
@@ -7,6 +7,14 @@ set timeout 10
7spawn $env(SHELL) 7spawn $env(SHELL)
8match_max 100000 8match_max 100000
9 9
10send -- "mkdir ~/_firejail_test_dir\r"
11after 100
12send -- "touch ~/_firejail_test_dir/a\r"
13after 100
14send -- "mkdir ~/_firejail_test_dir/test1\r"
15after 100
16send -- "touch ~/_firejail_test_dir/test1/b\r"
17after 100
10 18
11send -- "firejail --noprofile --whitelist=~/_firejail_test_dir --read-only=~\r" 19send -- "firejail --noprofile --whitelist=~/_firejail_test_dir --read-only=~\r"
12expect { 20expect {
@@ -25,4 +33,6 @@ after 100
25send -- "exit\r" 33send -- "exit\r"
26sleep 1 34sleep 1
27 35
36send -- "rm -fr ~/_firejail_test_dir\r"
37after 100
28puts "\nall done\n" 38puts "\nall done\n"