diff options
Diffstat (limited to 'test/features/1.4.exp')
-rwxr-xr-x | test/features/1.4.exp | 54 |
1 files changed, 28 insertions, 26 deletions
diff --git a/test/features/1.4.exp b/test/features/1.4.exp index 113a328c9..6de8b614f 100755 --- a/test/features/1.4.exp +++ b/test/features/1.4.exp | |||
@@ -77,33 +77,35 @@ if { $overlay == "overlay" } { | |||
77 | # | 77 | # |
78 | # C | 78 | # C |
79 | # | 79 | # |
80 | send -- "firejail --noprofile --chroot=/tmp/chroot\r" | 80 | if { $chroot == "chroot" } { |
81 | expect { | 81 | send -- "firejail --noprofile --chroot=/tmp/chroot\r" |
82 | timeout {puts "TESTING ERROR 4\n";exit} | 82 | expect { |
83 | "Child process initialized" | 83 | timeout {puts "TESTING ERROR 4\n";exit} |
84 | } | 84 | "Child process initialized" |
85 | sleep 1 | 85 | } |
86 | 86 | sleep 1 | |
87 | send -- "ls -l /home | wc -l\r" | 87 | |
88 | expect { | 88 | send -- "ls -l /home | wc -l\r" |
89 | timeout {puts "TESTING ERROR 5\n";exit} | 89 | expect { |
90 | "2" | 90 | timeout {puts "TESTING ERROR 5\n";exit} |
91 | } | 91 | "2" |
92 | after 100 | 92 | } |
93 | send -- "cat /etc/passwd | grep 1001 | wc -l\r" | 93 | after 100 |
94 | expect { | 94 | send -- "cat /etc/passwd | grep 1001 | wc -l\r" |
95 | timeout {puts "TESTING ERROR 5.1\n";exit} | 95 | expect { |
96 | "0" | 96 | timeout {puts "TESTING ERROR 5.1\n";exit} |
97 | } | 97 | "0" |
98 | after 100 | 98 | } |
99 | send -- "cat /etc/group | grep 1001 | wc -l\r" | 99 | after 100 |
100 | expect { | 100 | send -- "cat /etc/group | grep 1001 | wc -l\r" |
101 | timeout {puts "TESTING ERROR 5.2\n";exit} | 101 | expect { |
102 | "0" | 102 | timeout {puts "TESTING ERROR 5.2\n";exit} |
103 | "0" | ||
104 | } | ||
105 | after 100 | ||
106 | send -- "exit\r" | ||
107 | sleep 1 | ||
103 | } | 108 | } |
104 | after 100 | ||
105 | send -- "exit\r" | ||
106 | sleep 1 | ||
107 | 109 | ||
108 | 110 | ||
109 | puts "\nall done\n" | 111 | puts "\nall done\n" |