aboutsummaryrefslogtreecommitdiffstats
path: root/test/fs/private-home-dir.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/private-home-dir.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/private-home-dir.exp')
-rwxr-xr-xtest/fs/private-home-dir.exp15
1 files changed, 8 insertions, 7 deletions
diff --git a/test/fs/private-home-dir.exp b/test/fs/private-home-dir.exp
index 75ac5aea5..bd8cab16f 100755
--- a/test/fs/private-home-dir.exp
+++ b/test/fs/private-home-dir.exp
@@ -21,13 +21,13 @@ if {[file exists ~/.Xauthority]} {
21 send -- "touch ~/.Xauthority\r" 21 send -- "touch ~/.Xauthority\r"
22} 22}
23after 100 23after 100
24send -- "rm -fr ~/_firejail_test_dir_\r" 24send -- "rm -fr ~/_firejail_test_dir1_\r"
25after 100 25after 100
26send -- "mkdir ~/_firejail_test_dir_\r" 26send -- "mkdir ~/_firejail_test_dir1_\r"
27sleep 1 27sleep 1
28 28
29# testing profile and private 29# testing profile and private
30send -- "firejail --private=~/_firejail_test_dir_\r" 30send -- "firejail --private=~/_firejail_test_dir1_\r"
31expect { 31expect {
32 timeout {puts "TESTING ERROR 0\n";exit} 32 timeout {puts "TESTING ERROR 0\n";exit}
33 "Child process initialized" 33 "Child process initialized"
@@ -67,12 +67,12 @@ expect {
67 "private directory is not owned by the current user" 67 "private directory is not owned by the current user"
68} 68}
69sleep 1 69sleep 1
70send -- "mkdir ~/_firejail_test_dir_/test_dir_2\r" 70send -- "mkdir ~/_firejail_test_dir1_/test_dir_2\r"
71after 100 71after 100
72send -- "touch ~/_firejail_test_dir_/test_dir_2/testfile\r" 72send -- "touch ~/_firejail_test_dir1_/test_dir_2/testfile\r"
73sleep 1 73sleep 1
74 74
75send -- "firejail --debug --noprofile --blacklist=~/test_dir_2 --private=~/_firejail_test_dir_\r" 75send -- "firejail --debug --noprofile --blacklist=~/test_dir_2 --private=~/_firejail_test_dir1_\r"
76expect { 76expect {
77 timeout {puts "TESTING ERROR 10\n";exit} 77 timeout {puts "TESTING ERROR 10\n";exit}
78 "Disable" 78 "Disable"
@@ -98,7 +98,8 @@ after 100
98send "exit\r" 98send "exit\r"
99sleep 1 99sleep 1
100 100
101send -- "rm -fr ~/_firejail_test_dir_\r" 101send -- "rm -fr ~/_firejail_test_dir1\r"
102after 100 102after 100
103 103
104
104puts "\nall done\n" 105puts "\nall done\n"