aboutsummaryrefslogtreecommitdiffstats
path: root/test/features/3.1.exp
diff options
context:
space:
mode:
Diffstat (limited to 'test/features/3.1.exp')
-rwxr-xr-xtest/features/3.1.exp34
1 files changed, 18 insertions, 16 deletions
diff --git a/test/features/3.1.exp b/test/features/3.1.exp
index 13ec1b6be..3ee04c4de 100755
--- a/test/features/3.1.exp
+++ b/test/features/3.1.exp
@@ -53,23 +53,25 @@ if { $overlay == "overlay" } {
53# 53#
54# C 54# C
55# 55#
56send -- "touch /tmp/chroot/home/netblue/.config/firejail-test-file\r" 56if { $chroot == "chroot" } {
57sleep 1 57 send -- "touch /tmp/chroot/home/netblue/.config/firejail-test-file\r"
58send -- "firejail --noprofile --chroot=/tmp/chroot --tmpfs=/home/netblue/.config\r" 58 sleep 1
59expect { 59 send -- "firejail --noprofile --chroot=/tmp/chroot --tmpfs=/home/netblue/.config\r"
60 timeout {puts "TESTING ERROR 4\n";exit} 60 expect {
61 "Child process initialized" 61 timeout {puts "TESTING ERROR 4\n";exit}
62} 62 "Child process initialized"
63sleep 1 63 }
64 64 sleep 1
65send -- "ls ~/.config | wc -l\r" 65
66expect { 66 send -- "ls ~/.config | wc -l\r"
67 timeout {puts "TESTING ERROR 5\n";exit} 67 expect {
68 "0" 68 timeout {puts "TESTING ERROR 5\n";exit}
69 "0"
70 }
71 after 100
72 send -- "exit\r"
73 sleep 1
69} 74}
70after 100
71send -- "exit\r"
72sleep 1
73 75
74 76
75puts "\nall done\n" 77puts "\nall done\n"