Skip to content

Commit

Permalink
pasta: Remove some leftover code from pasta bats tests
Browse files Browse the repository at this point in the history
#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 <[email protected]>
  • Loading branch information
dgibson authored and ashley-cui committed Jun 30, 2023
1 parent 6feb179 commit a64016e
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions test/system/505-networking-pasta.bats
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a64016e

Please sign in to comment.