selftests/net: fix in_netns.sh script

execute the subprocess in netns using 'ip netns exec'

Fixes: cc30c93fa0 ("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>
This commit is contained in:
Prashant Bhole 2018-03-06 17:31:32 +09:00 committed by David S. Miller
parent 6e61e10a8a
commit 4d1e46a55e

View File

@ -19,5 +19,5 @@ cleanup() {
trap cleanup EXIT
setup
"$@"
ip netns exec "${NETNS}" "$@"
exit "$?"