diff options
Diffstat (limited to 'test/features/3.4.exp')
-rwxr-xr-x | test/features/3.4.exp | 31 |
1 files changed, 17 insertions, 14 deletions
diff --git a/test/features/3.4.exp b/test/features/3.4.exp index bc6e10733..da6dd3ff0 100755 --- a/test/features/3.4.exp +++ b/test/features/3.4.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 |
@@ -30,21 +31,23 @@ sleep 1 | |||
30 | # | 31 | # |
31 | # O | 32 | # O |
32 | # | 33 | # |
33 | send -- "firejail --noprofile --overlay --whitelist=/home/netblue/.config\r" | 34 | if { $overlay == "overlay" } { |
34 | expect { | 35 | send -- "firejail --noprofile --overlay --whitelist=/home/netblue/.config\r" |
35 | timeout {puts "TESTING ERROR 2\n";exit} | 36 | expect { |
36 | "Child process initialized" | 37 | timeout {puts "TESTING ERROR 2\n";exit} |
37 | } | 38 | "Child process initialized" |
38 | sleep 1 | 39 | } |
39 | 40 | sleep 1 | |
40 | send -- "ls -al ~/. | wc -l\r" | 41 | |
41 | expect { | 42 | send -- "ls -al ~/. | wc -l\r" |
42 | timeout {puts "TESTING ERROR 1\n";exit} | 43 | expect { |
43 | "6" | 44 | timeout {puts "TESTING ERROR 1\n";exit} |
45 | "6" | ||
46 | } | ||
47 | after 100 | ||
48 | send -- "exit\r" | ||
49 | sleep 1 | ||
44 | } | 50 | } |
45 | after 100 | ||
46 | send -- "exit\r" | ||
47 | sleep 1 | ||
48 | 51 | ||
49 | # | 52 | # |
50 | # C | 53 | # C |