Commit 4d1e46a5 authored by Prashant Bhole's avatar Prashant Bhole Committed by David S. Miller

selftests/net: fix in_netns.sh script

execute the subprocess in netns using 'ip netns exec'

Fixes: cc30c93f ("selftests/net: ignore background traffic in psock_fanout")
Signed-off-by: default avatarPrashant Bhole <bhole_prashant_q7@lab.ntt.co.jp>
Acked-by: default avatarWillem de Bruijn <willemb@google.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 6e61e10a
...@@ -19,5 +19,5 @@ cleanup() { ...@@ -19,5 +19,5 @@ cleanup() {
trap cleanup EXIT trap cleanup EXIT
setup setup
"$@" ip netns exec "${NETNS}" "$@"
exit "$?" exit "$?"
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment