git: 9247238cc4b8 - main - netlink: fix failing TestRtNlAddIfaddrLo::test_add_6 tests.
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 13 Jun 2023 15:26:49 UTC
The branch main has been updated by melifaro:
URL: https://cgit.FreeBSD.org/src/commit/?id=9247238cc4b8835892a47701136b0fd073f8d67c
commit 9247238cc4b8835892a47701136b0fd073f8d67c
Author: Alexander V. Chernikov <melifaro@FreeBSD.org>
AuthorDate: 2023-06-13 15:24:24 +0000
Commit: Alexander V. Chernikov <melifaro@FreeBSD.org>
CommitDate: 2023-06-13 15:26:44 +0000
netlink: fix failing TestRtNlAddIfaddrLo::test_add_6 tests.
Recent netlink commit added hook for calling IPv6 code upon implicit
inteface bring-up on adding first interface address. This hook handles
link-local ifa addition for the loopback interface, resulting in
failed assertion in the loopback tests.
Fix the tests by fixing the assert.
---
tests/sys/netlink/test_rtnl_ifaddr.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tests/sys/netlink/test_rtnl_ifaddr.py b/tests/sys/netlink/test_rtnl_ifaddr.py
index c7d6d86e781b..48e53502df54 100644
--- a/tests/sys/netlink/test_rtnl_ifaddr.py
+++ b/tests/sys/netlink/test_rtnl_ifaddr.py
@@ -698,7 +698,7 @@ class TestRtNlAddIfaddrLo(RtnlIfaOps):
self.send_check_success(msg)
lst = self.get_ifa_list(iface.ifindex, self.get_family_from_ip(ifa.ip))
- assert len(lst) == 1
+ assert len(lst) == 2 # link-local should be auto-created as well
rx_msg = self.find_msg_by_ifa(lst, ifa.ip)
assert rx_msg is not None