diff options
Diffstat (limited to 'test/features/1.1.exp')
-rwxr-xr-x | test/features/1.1.exp | 31 |
1 files changed, 17 insertions, 14 deletions
diff --git a/test/features/1.1.exp b/test/features/1.1.exp index dafa4630e..0d02b54c1 100755 --- a/test/features/1.1.exp +++ b/test/features/1.1.exp | |||
@@ -7,6 +7,7 @@ set timeout 10 | |||
7 | spawn $env(SHELL) | 7 | spawn $env(SHELL) |
8 | match_max 100000 | 8 | match_max 100000 |
9 | set overlay [lindex $argv 0] | 9 | set overlay [lindex $argv 0] |
10 | set chroot [lindex $argv 1] | ||
10 | 11 | ||
11 | # | 12 | # |
12 | # N | 13 | # N |
@@ -52,21 +53,23 @@ if { $overlay == "overlay" } { | |||
52 | # | 53 | # |
53 | # C | 54 | # C |
54 | # | 55 | # |
55 | send -- "firejail --noprofile --chroot=/tmp/chroot\r" | 56 | if { $chroot == "chroot" } { |
56 | expect { | 57 | send -- "firejail --noprofile --chroot=/tmp/chroot\r" |
57 | timeout {puts "TESTING ERROR 4\n";exit} | 58 | expect { |
58 | "Child process initialized" | 59 | timeout {puts "TESTING ERROR 4\n";exit} |
59 | } | 60 | "Child process initialized" |
60 | sleep 1 | 61 | } |
61 | 62 | sleep 1 | |
62 | send -- "ls -l /boot\r" | 63 | |
63 | expect { | 64 | send -- "ls -l /boot\r" |
64 | timeout {puts "TESTING ERROR 5\n";exit} | 65 | expect { |
65 | "Permission denied" | 66 | timeout {puts "TESTING ERROR 5\n";exit} |
67 | "Permission denied" | ||
68 | } | ||
69 | after 100 | ||
70 | send -- "exit\r" | ||
71 | sleep 1 | ||
66 | } | 72 | } |
67 | after 100 | ||
68 | send -- "exit\r" | ||
69 | sleep 1 | ||
70 | 73 | ||
71 | 74 | ||
72 | puts "\nall done\n" | 75 | puts "\nall done\n" |