diff options
Diffstat (limited to 'test/features/2.1.exp')
-rwxr-xr-x | test/features/2.1.exp | 62 |
1 files changed, 32 insertions, 30 deletions
diff --git a/test/features/2.1.exp b/test/features/2.1.exp index 5f188988b..2e9bef8f4 100755 --- a/test/features/2.1.exp +++ b/test/features/2.1.exp | |||
@@ -84,37 +84,39 @@ if { $overlay == "overlay" } { | |||
84 | # | 84 | # |
85 | # C | 85 | # C |
86 | # | 86 | # |
87 | send -- "firejail --noprofile --hostname=bingo --chroot=/tmp/chroot\r" | 87 | if { $chroot == "chroot" } { |
88 | expect { | 88 | send -- "firejail --noprofile --hostname=bingo --chroot=/tmp/chroot\r" |
89 | timeout {puts "TESTING ERROR 4\n";exit} | 89 | expect { |
90 | "Child process initialized" | 90 | timeout {puts "TESTING ERROR 4\n";exit} |
91 | } | 91 | "Child process initialized" |
92 | sleep 1 | 92 | } |
93 | 93 | sleep 1 | |
94 | send -- "hostname\r" | 94 | |
95 | expect { | 95 | send -- "hostname\r" |
96 | timeout {puts "TESTING ERROR 5\n";exit} | 96 | expect { |
97 | "bingo" | 97 | timeout {puts "TESTING ERROR 5\n";exit} |
98 | } | 98 | "bingo" |
99 | after 100 | 99 | } |
100 | send -- "cat /etc/hostname\r" | 100 | after 100 |
101 | expect { | 101 | send -- "cat /etc/hostname\r" |
102 | timeout {puts "TESTING ERROR 5.0\n";exit} | 102 | expect { |
103 | "bingo" | 103 | timeout {puts "TESTING ERROR 5.0\n";exit} |
104 | } | 104 | "bingo" |
105 | after 100 | 105 | } |
106 | send -- "getent hosts bingo\r" | 106 | after 100 |
107 | expect { | 107 | send -- "getent hosts bingo\r" |
108 | timeout {puts "TESTING ERROR 5.1\n";exit} | 108 | expect { |
109 | "127.0.0.1" | 109 | timeout {puts "TESTING ERROR 5.1\n";exit} |
110 | } | 110 | "127.0.0.1" |
111 | expect { | 111 | } |
112 | timeout {puts "TESTING ERROR 5.2\n";exit} | 112 | expect { |
113 | "bingo" | 113 | timeout {puts "TESTING ERROR 5.2\n";exit} |
114 | "bingo" | ||
115 | } | ||
116 | after 100 | ||
117 | send -- "exit\r" | ||
118 | sleep 1 | ||
114 | } | 119 | } |
115 | after 100 | ||
116 | send -- "exit\r" | ||
117 | sleep 1 | ||
118 | 120 | ||
119 | 121 | ||
120 | puts "\nall done\n" | 122 | puts "\nall done\n" |