diff options
author | Reiner Herrmann <reiner@reiner-h.de> | 2017-04-17 00:06:53 +0200 |
---|---|---|
committer | Reiner Herrmann <reiner@reiner-h.de> | 2017-04-17 00:06:53 +0200 |
commit | 575aca9482de3a1d81dbf45fa7734de229858558 (patch) | |
tree | f0b2fdeaee1b41f50ae0f74c3f1527bf7914e8c5 /test/network/4bridges_ip.exp | |
parent | test: rm has no output by default (diff) | |
download | firejail-575aca9482de3a1d81dbf45fa7734de229858558.tar.gz firejail-575aca9482de3a1d81dbf45fa7734de229858558.tar.zst firejail-575aca9482de3a1d81dbf45fa7734de229858558.zip |
test: adapt output to newer versions of iproute2 and net-tools
iproute2 now prevents output of double spaces
Diffstat (limited to 'test/network/4bridges_ip.exp')
-rwxr-xr-x | test/network/4bridges_ip.exp | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/test/network/4bridges_ip.exp b/test/network/4bridges_ip.exp index 5e136926b..74a1e5d68 100755 --- a/test/network/4bridges_ip.exp +++ b/test/network/4bridges_ip.exp | |||
@@ -150,25 +150,29 @@ expect { | |||
150 | send -- "ip route show\r" | 150 | send -- "ip route show\r" |
151 | expect { | 151 | expect { |
152 | timeout {puts "TESTING ERROR 10.2\n";exit} | 152 | timeout {puts "TESTING ERROR 10.2\n";exit} |
153 | "10.10.20.0/29 dev eth0 proto kernel scope link" | 153 | "10.10.20.0/29 dev eth0 proto kernel scope link" {puts "old iproute2\n";} |
154 | "10.10.20.0/29 dev eth0 proto kernel scope link" {puts "new iproute2\n";} | ||
154 | } | 155 | } |
155 | 156 | ||
156 | send -- "ip route show\r" | 157 | send -- "ip route show\r" |
157 | expect { | 158 | expect { |
158 | timeout {puts "TESTING ERROR 10.3\n";exit} | 159 | timeout {puts "TESTING ERROR 10.3\n";exit} |
159 | "10.10.30.0/24 dev eth1 proto kernel scope link src 10.10.30.50" | 160 | "10.10.30.0/24 dev eth1 proto kernel scope link src 10.10.30.50" {puts "old iproute2\n";} |
161 | "10.10.30.0/24 dev eth1 proto kernel scope link src 10.10.30.50" {puts "new iproute2\n";} | ||
160 | } | 162 | } |
161 | 163 | ||
162 | send -- "ip route show\r" | 164 | send -- "ip route show\r" |
163 | expect { | 165 | expect { |
164 | timeout {puts "TESTING ERROR 10.4\n";exit} | 166 | timeout {puts "TESTING ERROR 10.4\n";exit} |
165 | "10.10.40.0/24 dev eth2 proto kernel scope link src 10.10.40.100" | 167 | "10.10.40.0/24 dev eth2 proto kernel scope link src 10.10.40.100" {puts "old iproute2\n";} |
168 | "10.10.40.0/24 dev eth2 proto kernel scope link src 10.10.40.100" {puts "new iproute2\n";} | ||
166 | } | 169 | } |
167 | 170 | ||
168 | send -- "ip route show\r" | 171 | send -- "ip route show\r" |
169 | expect { | 172 | expect { |
170 | timeout {puts "TESTING ERROR 10.5\n";exit} | 173 | timeout {puts "TESTING ERROR 10.5\n";exit} |
171 | "10.10.50.0/24 dev eth3 proto kernel scope link" | 174 | "10.10.50.0/24 dev eth3 proto kernel scope link" {puts "old iproute2\n";} |
175 | "10.10.50.0/24 dev eth3 proto kernel scope link" {puts "new iproute2\n";} | ||
172 | } | 176 | } |
173 | 177 | ||
174 | send -- "exit\r" | 178 | send -- "exit\r" |