diff options
Diffstat (limited to 'test/features/2.2.exp')
-rwxr-xr-x | test/features/2.2.exp | 46 |
1 files changed, 24 insertions, 22 deletions
diff --git a/test/features/2.2.exp b/test/features/2.2.exp index 186da98fb..d25238107 100755 --- a/test/features/2.2.exp +++ b/test/features/2.2.exp | |||
@@ -68,29 +68,31 @@ if { $overlay == "overlay" } { | |||
68 | # | 68 | # |
69 | # C | 69 | # C |
70 | # | 70 | # |
71 | send -- "firejail --noprofile --dns=4.2.2.1 --chroot=/tmp/chroot\r" | 71 | if { $chroot == "chroot" } { |
72 | expect { | 72 | send -- "firejail --noprofile --dns=4.2.2.1 --chroot=/tmp/chroot\r" |
73 | timeout {puts "TESTING ERROR 4\n";exit} | 73 | expect { |
74 | "Child process initialized" | 74 | timeout {puts "TESTING ERROR 4\n";exit} |
75 | } | 75 | "Child process initialized" |
76 | sleep 1 | 76 | } |
77 | 77 | sleep 1 | |
78 | send -- "dig google.com\r" | 78 | |
79 | expect { | 79 | send -- "dig google.com\r" |
80 | timeout {puts "TESTING ERROR 5\n";exit} | 80 | expect { |
81 | "ANSWER SECTION" | 81 | timeout {puts "TESTING ERROR 5\n";exit} |
82 | } | 82 | "ANSWER SECTION" |
83 | expect { | 83 | } |
84 | timeout {puts "TESTING ERROR 5.1\n";exit} | 84 | expect { |
85 | "google.com" | 85 | timeout {puts "TESTING ERROR 5.1\n";exit} |
86 | } | 86 | "google.com" |
87 | expect { | 87 | } |
88 | timeout {puts "TESTING ERROR 5.3\n";exit} | 88 | expect { |
89 | "SERVER: 4.2.2.1" | 89 | timeout {puts "TESTING ERROR 5.3\n";exit} |
90 | "SERVER: 4.2.2.1" | ||
91 | } | ||
92 | after 100 | ||
93 | send -- "exit\r" | ||
94 | sleep 1 | ||
90 | } | 95 | } |
91 | after 100 | ||
92 | send -- "exit\r" | ||
93 | sleep 1 | ||
94 | 96 | ||
95 | 97 | ||
96 | puts "\nall done\n" | 98 | puts "\nall done\n" |