diff options
author | startx2017 <vradu.startx@protonmail.com> | 2021-07-29 07:47:16 -0400 |
---|---|---|
committer | startx2017 <vradu.startx@protonmail.com> | 2021-07-29 07:47:16 -0400 |
commit | b4424d947838cc41fc82f1ba9a7c06b8a49f9bae (patch) | |
tree | 2ac1fd1d9f2611bd7a19cd78cc76478c2d111125 /test/fs/read-write.exp | |
parent | Fixup: Fix Firefox 'Profile not found' - whitelist /run/user/xxx/firefox (diff) | |
download | firejail-b4424d947838cc41fc82f1ba9a7c06b8a49f9bae.tar.gz firejail-b4424d947838cc41fc82f1ba9a7c06b8a49f9bae.tar.zst firejail-b4424d947838cc41fc82f1ba9a7c06b8a49f9bae.zip |
rework make test-fs
Diffstat (limited to 'test/fs/read-write.exp')
-rwxr-xr-x | test/fs/read-write.exp | 13 |
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 | |||
7 | spawn $env(SHELL) | 7 | spawn $env(SHELL) |
8 | match_max 100000 | 8 | match_max 100000 |
9 | 9 | ||
10 | send -- "mkdir ~/_firejail_test_dir\r" | ||
11 | after 100 | ||
12 | send -- "touch ~/_firejail_test_dir/a\r" | ||
13 | after 100 | ||
14 | send -- "mkdir ~/_firejail_test_dir/test1\r" | ||
15 | after 100 | ||
16 | send -- "touch ~/_firejail_test_dir/test1/b\r" | ||
17 | after 100 | ||
10 | 18 | ||
11 | send -- "firejail --read-only=~/_firejail_test_dir --read-write=~/_firejail_test_dir/test1\r" | 19 | send -- "firejail --read-only=~/_firejail_test_dir --read-write=~/_firejail_test_dir/test1\r" |
12 | expect { | 20 | expect { |
@@ -32,4 +40,9 @@ expect { | |||
32 | } | 40 | } |
33 | 41 | ||
34 | after 100 | 42 | after 100 |
43 | send -- "exit\r" | ||
44 | sleep 1 | ||
45 | |||
46 | send -- "rm -fr ~/_firejail_test_dir\r" | ||
47 | after 100 | ||
35 | puts "\nall done\n" | 48 | puts "\nall done\n" |