Subject: Re: [PATCH net-next 07/10] tools: ynl: convert devlink sample to selftest

From: Jakub Kicinski <[email-masked]>
Date: Fri, 6 Mar 2026 16:11:09 -0800

On Fri, 06 Mar 2026 11:53:11 +0000 Donald Hunter wrote:
> > +# SPDX-License-Identifier: GPL-2.0
> > +source "$(dirname "$(realpath "$0")")/ynl_nsim_lib.sh"
> > +nsim_setup
> > +exec "$(dirname "$(realpath "$0")")/devlink"  
> 
> exec is defeating the netdevsim cleanup in the exit handler.
> 
> .../ynl_nsim_lib.sh: line 22: echo: write error: No space left on device
> Error: ipv4: Address already assigned.
> Error: ipv6: address already assigned.
> 
> Same for ethtool.sh, rt-addr.sh and rt-route.sh

Ah thanks! I've been testing these with:

  vng --user root -r -- ./tools/net/ynl/tests/devlink.sh

didn't actually check if the cleanup works..