diff options
Diffstat (limited to 'test/features/2.6.exp')
-rwxr-xr-x | test/features/2.6.exp | 31 |
1 files changed, 17 insertions, 14 deletions
diff --git a/test/features/2.6.exp b/test/features/2.6.exp index dc2381393..77bd8cab0 100755 --- a/test/features/2.6.exp +++ b/test/features/2.6.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 |
@@ -29,21 +30,23 @@ sleep 1 | |||
29 | # | 30 | # |
30 | # O | 31 | # O |
31 | # | 32 | # |
32 | send -- "firejail --noprofile --overlay --net=eth0 --defaultgw=192.168.1.10\r" | 33 | if { $overlay == "overlay" } { |
33 | expect { | 34 | send -- "firejail --noprofile --overlay --net=eth0 --defaultgw=192.168.1.10\r" |
34 | timeout {puts "TESTING ERROR 2\n";exit} | 35 | expect { |
35 | "Child process initialized" | 36 | timeout {puts "TESTING ERROR 2\n";exit} |
37 | "Child process initialized" | ||
38 | } | ||
39 | sleep 1 | ||
40 | |||
41 | send -- "netstat -rn\r" | ||
42 | expect { | ||
43 | timeout {puts "TESTING ERROR 3\n";exit} | ||
44 | "0.0.0.0 192.168.1.10" | ||
45 | } | ||
46 | after 100 | ||
47 | send -- "exit\r" | ||
48 | sleep 1 | ||
36 | } | 49 | } |
37 | sleep 1 | ||
38 | |||
39 | send -- "netstat -rn\r" | ||
40 | expect { | ||
41 | timeout {puts "TESTING ERROR 3\n";exit} | ||
42 | "0.0.0.0 192.168.1.10" | ||
43 | } | ||
44 | after 100 | ||
45 | send -- "exit\r" | ||
46 | sleep 1 | ||
47 | 50 | ||
48 | # | 51 | # |
49 | # C | 52 | # C |