netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH net-next] selftests: forwarding: lib.sh: ignore "Address not found"
@ 2024-08-06  4:20 Geliang Tang
  2024-08-06  7:34 ` Nicolas Dichtel
  2024-08-06  7:40 ` Ido Schimmel
  0 siblings, 2 replies; 9+ messages in thread
From: Geliang Tang @ 2024-08-06  4:20 UTC (permalink / raw)
  To: David S. Miller, Eric Dumazet, Jakub Kicinski, Paolo Abeni,
	Shuah Khan, Petr Machata, Hangbin Liu, Benjamin Poirier,
	Ido Schimmel, Jiri Pirko, Vladimir Oltean
  Cc: Geliang Tang, netdev, linux-kselftest

From: Geliang Tang <tanggeliang@kylinos.cn>

So many "Address not found" messages occur at the end of forwarding tests
when using "ip address del" command for an invalid address:

TEST: FDB limits interacting with FDB type local                    [ OK ]
Error: ipv4: Address not found.

... ...
TEST: IGMPv3 S,G port entry automatic add to a *,G port             [ OK ]
Error: ipv4: Address not found.
Error: ipv6: address not found.

... ...
TEST: Isolated port flooding                                        [ OK ]
Error: ipv4: Address not found.
Error: ipv6: address not found.

... ...
TEST: Externally learned FDB entry - ageing & roaming               [ OK ]
Error: ipv4: Address not found.
Error: ipv6: address not found.

This patch gnores these messages and redirects them to /dev/null in
__addr_add_del().

Signed-off-by: Geliang Tang <tanggeliang@kylinos.cn>
---
 tools/testing/selftests/net/forwarding/lib.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tools/testing/selftests/net/forwarding/lib.sh b/tools/testing/selftests/net/forwarding/lib.sh
index ff96bb7535ff..8670b6053cde 100644
--- a/tools/testing/selftests/net/forwarding/lib.sh
+++ b/tools/testing/selftests/net/forwarding/lib.sh
@@ -839,7 +839,7 @@ __addr_add_del()
 	array=("${@}")
 
 	for addrstr in "${array[@]}"; do
-		ip address $add_del $addrstr dev $if_name
+		ip address $add_del $addrstr dev $if_name &> /dev/null
 	done
 }
 
-- 
2.43.0


^ permalink raw reply related	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2024-08-08 14:26 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-08-06  4:20 [PATCH net-next] selftests: forwarding: lib.sh: ignore "Address not found" Geliang Tang
2024-08-06  7:34 ` Nicolas Dichtel
2024-08-07  4:12   ` Geliang Tang
2024-08-06  7:40 ` Ido Schimmel
2024-08-07  4:08   ` Geliang Tang
2024-08-07  6:59     ` Ido Schimmel
2024-08-08  8:53       ` Geliang Tang
2024-08-08 14:25         ` Ido Schimmel
2024-08-07 14:32     ` Jakub Kicinski

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).