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:
David Gibson
2023-06-29 12:51:44 +10:00
parent f0cb8dfe5b
commit 13c7d05cc1

View File

@ -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