aboutsummaryrefslogtreecommitdiffstats
path: root/test/features/2.2.exp
diff options
context:
space:
mode:
Diffstat (limited to 'test/features/2.2.exp')
-rwxr-xr-xtest/features/2.2.exp46
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#
71send -- "firejail --noprofile --dns=4.2.2.1 --chroot=/tmp/chroot\r" 71if { $chroot == "chroot" } {
72expect { 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"
76sleep 1 76 }
77 77 sleep 1
78send -- "dig google.com\r" 78
79expect { 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"
83expect { 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"
87expect { 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}
91after 100
92send -- "exit\r"
93sleep 1
94 96
95 97
96puts "\nall done\n" 98puts "\nall done\n"