diff options
Diffstat (limited to 'test/features/1.8.exp')
-rwxr-xr-x | test/features/1.8.exp | 43 |
1 files changed, 23 insertions, 20 deletions
diff --git a/test/features/1.8.exp b/test/features/1.8.exp index aefe9d8c5..293864671 100755 --- a/test/features/1.8.exp +++ b/test/features/1.8.exp | |||
@@ -6,6 +6,7 @@ | |||
6 | set timeout 10 | 6 | 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 | 10 | ||
10 | # | 11 | # |
11 | # N | 12 | # N |
@@ -37,27 +38,29 @@ sleep 1 | |||
37 | # | 38 | # |
38 | # O | 39 | # O |
39 | # | 40 | # |
40 | send -- "firejail --noprofile --overlay\r" | 41 | if { $overlay == "overlay" } { |
41 | expect { | 42 | send -- "firejail --noprofile --overlay\r" |
42 | timeout {puts "TESTING ERROR 2\n";exit} | 43 | expect { |
43 | "Child process initialized" | 44 | timeout {puts "TESTING ERROR 2\n";exit} |
44 | } | 45 | "Child process initialized" |
45 | sleep 1 | 46 | } |
46 | send -- "ls /etc/firejail\r" | 47 | sleep 1 |
47 | expect { | 48 | send -- "ls /etc/firejail\r" |
48 | timeout {puts "TESTING ERROR 3\n";exit} | 49 | expect { |
49 | "Permission denied" | 50 | timeout {puts "TESTING ERROR 3\n";exit} |
50 | } | 51 | "Permission denied" |
51 | after 100 | 52 | } |
52 | send -- "ls ~/.config/firejail\r" | 53 | after 100 |
53 | expect { | 54 | send -- "ls ~/.config/firejail\r" |
54 | timeout {puts "TESTING ERROR 3.1\n";exit} | 55 | expect { |
55 | "Permission denied" | 56 | timeout {puts "TESTING ERROR 3.1\n";exit} |
57 | "Permission denied" | ||
58 | } | ||
59 | after 100 | ||
60 | |||
61 | send -- "exit\r" | ||
62 | sleep 1 | ||
56 | } | 63 | } |
57 | after 100 | ||
58 | |||
59 | send -- "exit\r" | ||
60 | sleep 1 | ||
61 | 64 | ||
62 | # | 65 | # |
63 | # C | 66 | # C |