Skip to content

Commit

Permalink
selftests/net: fix in_netns.sh script
Browse files Browse the repository at this point in the history
execute the subprocess in netns using 'ip netns exec'

Fixes: cc30c93 ("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>
  • Loading branch information
Prashant Bhole authored and David S. Miller committed Mar 7, 2018
1 parent 6e61e10 commit 4d1e46a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/testing/selftests/net/in_netns.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,5 @@ cleanup() {
trap cleanup EXIT
setup

"$@"
ip netns exec "${NETNS}" "$@"
exit "$?"

0 comments on commit 4d1e46a

Please sign in to comment.