mirror of
https://github.com/containers/podman.git
synced 2025-06-23 18:59:30 +08:00
pasta: Remove some leftover code from pasta bats tests
https://github.com/containers/podman/pull/19021 fixed bugs with the pasta networking tests not working on hosts with multiple interfaces. Alas, the patch left in some stale code that generates spurious error messages for the IPv6 case. This is sort of harmless - later code overrides what's done here and the tests can pass anyway. However if a test fails for some other reason it means we get a misleading irrelevant error message. Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
This commit is contained in:
@ -55,12 +55,6 @@ function pasta_test_do() {
|
||||
skip_if_no_ipv4 "IPv4 not routable on the host"
|
||||
elif [ ${ip_ver} -eq 6 ]; then
|
||||
skip_if_no_ipv6 "IPv6 not routable on the host"
|
||||
if [ ${iftype} = "loopback" ]; then
|
||||
local ifname="lo"
|
||||
local addr="::1"
|
||||
else
|
||||
local addr="$(ipv6_get_addr_default)"
|
||||
fi
|
||||
else
|
||||
skip "Unsupported IP version"
|
||||
fi
|
||||
|
Reference in New Issue
Block a user