From 13c7d05cc16e9aec7473c6ba20276e8cd8cf1ed1 Mon Sep 17 00:00:00 2001 From: David Gibson Date: Thu, 29 Jun 2023 12:51:44 +1000 Subject: [PATCH] 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 --- test/system/505-networking-pasta.bats | 6 ------ 1 file changed, 6 deletions(-) diff --git a/test/system/505-networking-pasta.bats b/test/system/505-networking-pasta.bats index 257da40dc8..16a5c28745 100644 --- a/test/system/505-networking-pasta.bats +++ b/test/system/505-networking-pasta.bats @@ -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