aboutsummaryrefslogtreecommitdiffstats
path: root/test/fs/read-write.exp
diff options
context:
space:
mode:
authorLibravatar startx2017 <vradu.startx@protonmail.com>2021-07-29 07:47:16 -0400
committerLibravatar startx2017 <vradu.startx@protonmail.com>2021-07-29 07:47:16 -0400
commitb4424d947838cc41fc82f1ba9a7c06b8a49f9bae (patch)
tree2ac1fd1d9f2611bd7a19cd78cc76478c2d111125 /test/fs/read-write.exp
parentFixup: Fix Firefox 'Profile not found' - whitelist /run/user/xxx/firefox (diff)
downloadfirejail-b4424d947838cc41fc82f1ba9a7c06b8a49f9bae.tar.gz
firejail-b4424d947838cc41fc82f1ba9a7c06b8a49f9bae.tar.zst
firejail-b4424d947838cc41fc82f1ba9a7c06b8a49f9bae.zip
rework make test-fs
Diffstat (limited to 'test/fs/read-write.exp')
-rwxr-xr-xtest/fs/read-write.exp13
1 files changed, 13 insertions, 0 deletions
diff --git a/test/fs/read-write.exp b/test/fs/read-write.exp
index ad51c2db1..6c0f755da 100755
--- a/test/fs/read-write.exp
+++ b/test/fs/read-write.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 --read-only=~/_firejail_test_dir --read-write=~/_firejail_test_dir/test1\r" 19send -- "firejail --read-only=~/_firejail_test_dir --read-write=~/_firejail_test_dir/test1\r"
12expect { 20expect {
@@ -32,4 +40,9 @@ expect {
32} 40}
33 41
34after 100 42after 100
43send -- "exit\r"
44sleep 1
45
46send -- "rm -fr ~/_firejail_test_dir\r"
47after 100
35puts "\nall done\n" 48puts "\nall done\n"