netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] selftests/net/forwarding: teamd command not found
@ 2025-01-10  0:07 Alessandro Zanni
  2025-01-10  4:09 ` Hangbin Liu
  0 siblings, 1 reply; 6+ messages in thread
From: Alessandro Zanni @ 2025-01-10  0:07 UTC (permalink / raw)
  To: davem, edumazet, kuba, pabeni, shuah
  Cc: Alessandro Zanni, netdev, linux-kselftest, linux-kernel

Running "make kselftest TARGETS=net/forwarding" results in several
occurrences of the same error:
 ./lib.sh: line 787: teamd: command not found

Since many tests depends on teamd, this fix stops the tests if the
teamd command is not installed.

Signed-off-by: Alessandro Zanni <alessandro.zanni87@gmail.com>
---
 tools/testing/selftests/net/forwarding/lib.sh | 1 +
 1 file changed, 1 insertion(+)

diff --git a/tools/testing/selftests/net/forwarding/lib.sh b/tools/testing/selftests/net/forwarding/lib.sh
index 7337f398f9cc..a6a74a4be4bf 100644
--- a/tools/testing/selftests/net/forwarding/lib.sh
+++ b/tools/testing/selftests/net/forwarding/lib.sh
@@ -784,6 +784,7 @@ team_destroy()
 {
 	local if_name=$1; shift
 
+	require_command $TEAMD
 	$TEAMD -t $if_name -k
 }
 
-- 
2.43.0


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

end of thread, other threads:[~2025-01-13 12:07 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-01-10  0:07 [PATCH] selftests/net/forwarding: teamd command not found Alessandro Zanni
2025-01-10  4:09 ` Hangbin Liu
2025-01-10 14:35   ` Alessandro Zanni
2025-01-11  1:11     ` Hangbin Liu
2025-01-11  1:16     ` Jakub Kicinski
2025-01-13 11:48       ` Petr Machata

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).