Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

selftests/net: fix in_netns.sh script

execute the subprocess in netns using 'ip netns exec'

Fixes: cc30c93fa020 ("selftests/net: ignore background traffic in psock_fanout")
Signed-off-by: Prashant Bhole <bhole_prashant_q7@lab.ntt.co.jp>
Acked-by: Willem de Bruijn <willemb@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by

Prashant Bhole and committed by
David S. Miller
4d1e46a5 6e61e10a

+1 -1
+1 -1
tools/testing/selftests/net/in_netns.sh
··· 19 19 trap cleanup EXIT 20 20 setup 21 21 22 - "$@" 22 + ip netns exec "${NETNS}" "$@" 23 23 exit "$?"