Netdev Archive mirror
 help / color / mirror / Atom feed
* [net-next PATCH] test: hsr: Call cleanup_all_ns when hsr_redbox.sh script exits
@ 2024-05-07  9:11 Lukasz Majewski
  2024-05-08  9:07 ` Simon Horman
  2024-05-08 11:30 ` patchwork-bot+netdevbpf
  0 siblings, 2 replies; 3+ messages in thread
From: Lukasz Majewski @ 2024-05-07  9:11 UTC (permalink / raw
  To: Jakub Kicinski
  Cc: Eric Dumazet, David S. Miller, Paolo Abeni, Shuah Khan, netdev,
	linux-kselftest, linux-kernel, Lukasz Majewski

Without this change the created netns instances are not cleared after
this script execution. To fix this problem the cleanup_all_ns function
from ../lib.sh is called.

Signed-off-by: Lukasz Majewski <lukma@denx.de>
---
 tools/testing/selftests/net/hsr/hsr_redbox.sh | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/tools/testing/selftests/net/hsr/hsr_redbox.sh b/tools/testing/selftests/net/hsr/hsr_redbox.sh
index 52e0412c32e6..db69be95ecb3 100755
--- a/tools/testing/selftests/net/hsr/hsr_redbox.sh
+++ b/tools/testing/selftests/net/hsr/hsr_redbox.sh
@@ -86,6 +86,8 @@ setup_hsr_interfaces()
 check_prerequisites
 setup_ns ns1 ns2 ns3
 
+trap cleanup_all_ns EXIT
+
 setup_hsr_interfaces 1
 do_complete_ping_test
 
-- 
2.20.1


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

* Re: [net-next PATCH] test: hsr: Call cleanup_all_ns when hsr_redbox.sh script exits
  2024-05-07  9:11 [net-next PATCH] test: hsr: Call cleanup_all_ns when hsr_redbox.sh script exits Lukasz Majewski
@ 2024-05-08  9:07 ` Simon Horman
  2024-05-08 11:30 ` patchwork-bot+netdevbpf
  1 sibling, 0 replies; 3+ messages in thread
From: Simon Horman @ 2024-05-08  9:07 UTC (permalink / raw
  To: Lukasz Majewski
  Cc: Jakub Kicinski, Eric Dumazet, David S. Miller, Paolo Abeni,
	Shuah Khan, netdev, linux-kselftest, linux-kernel

On Tue, May 07, 2024 at 11:11:55AM +0200, Lukasz Majewski wrote:
> Without this change the created netns instances are not cleared after
> this script execution. To fix this problem the cleanup_all_ns function
> from ../lib.sh is called.
> 
> Signed-off-by: Lukasz Majewski <lukma@denx.de>

Reviewed-by: Simon Horman <horms@kernel.org>


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

* Re: [net-next PATCH] test: hsr: Call cleanup_all_ns when hsr_redbox.sh script exits
  2024-05-07  9:11 [net-next PATCH] test: hsr: Call cleanup_all_ns when hsr_redbox.sh script exits Lukasz Majewski
  2024-05-08  9:07 ` Simon Horman
@ 2024-05-08 11:30 ` patchwork-bot+netdevbpf
  1 sibling, 0 replies; 3+ messages in thread
From: patchwork-bot+netdevbpf @ 2024-05-08 11:30 UTC (permalink / raw
  To: Lukasz Majewski
  Cc: kuba, edumazet, davem, pabeni, shuah, netdev, linux-kselftest,
	linux-kernel

Hello:

This patch was applied to netdev/net-next.git (main)
by David S. Miller <davem@davemloft.net>:

On Tue,  7 May 2024 11:11:55 +0200 you wrote:
> Without this change the created netns instances are not cleared after
> this script execution. To fix this problem the cleanup_all_ns function
> from ../lib.sh is called.
> 
> Signed-off-by: Lukasz Majewski <lukma@denx.de>
> ---
>  tools/testing/selftests/net/hsr/hsr_redbox.sh | 2 ++
>  1 file changed, 2 insertions(+)

Here is the summary with links:
  - [net-next] test: hsr: Call cleanup_all_ns when hsr_redbox.sh script exits
    https://git.kernel.org/netdev/net-next/c/252aa6d53931

You are awesome, thank you!
-- 
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html



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

end of thread, other threads:[~2024-05-08 11:30 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-05-07  9:11 [net-next PATCH] test: hsr: Call cleanup_all_ns when hsr_redbox.sh script exits Lukasz Majewski
2024-05-08  9:07 ` Simon Horman
2024-05-08 11:30 ` patchwork-bot+netdevbpf

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 read-only IMAP folder(s) and NNTP newsgroup(s).