diff options
Diffstat (limited to 'test/network/dns-print.exp')
-rwxr-xr-x | test/network/dns-print.exp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/test/network/dns-print.exp b/test/network/dns-print.exp index 769d5431c..7d3da8ace 100755 --- a/test/network/dns-print.exp +++ b/test/network/dns-print.exp | |||
@@ -7,17 +7,17 @@ set timeout 10 | |||
7 | spawn $env(SHELL) | 7 | spawn $env(SHELL) |
8 | match_max 100000 | 8 | match_max 100000 |
9 | 9 | ||
10 | send -- "firejail --name=test-dns --net=eth0 --dns=1.2.3.4 --dns=2.3.4.5 --dns=3.4.5.6\r" | 10 | send -- "firejail --name=test --net=br0 --dns=1.2.3.4 --dns=2.3.4.5 --dns=3.4.5.6\r" |
11 | expect { | 11 | expect { |
12 | timeout {puts "TESTING ERROR 1\n";exit} | 12 | timeout {puts "TESTING ERROR 0\n";exit} |
13 | -re "Child process initialized in \[0-9\]+.\[0-9\]+ ms" | 13 | -re "Child process initialized in \[0-9\]+.\[0-9\]+ ms" |
14 | } | 14 | } |
15 | sleep 1 | 15 | sleep 1 |
16 | 16 | ||
17 | spawn $env(SHELL) | 17 | spawn $env(SHELL) |
18 | send -- "firejail --dns.print=test-dns\r" | 18 | send -- "firejail --dns.print=test\r" |
19 | expect { | 19 | expect { |
20 | timeout {puts "TESTING ERROR 2\n";exit} | 20 | timeout {puts "TESTING ERROR 1\n";exit} |
21 | "nameserver 1.2.3.4" | 21 | "nameserver 1.2.3.4" |
22 | } | 22 | } |
23 | expect { | 23 | expect { |
@@ -25,10 +25,10 @@ expect { | |||
25 | "nameserver 2.3.4.5" | 25 | "nameserver 2.3.4.5" |
26 | } | 26 | } |
27 | expect { | 27 | expect { |
28 | timeout {puts "TESTING ERROR 2\n";exit} | 28 | timeout {puts "TESTING ERROR 3\n";exit} |
29 | "nameserver 3.4.5.6" | 29 | "nameserver 3.4.5.6" |
30 | } | 30 | } |
31 | 31 | ||
32 | after 100 | 32 | after 500 |
33 | 33 | ||
34 | puts "\nall done\n" | 34 | puts "\nall done\n" |