summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorPrashant Bhole <bhole_prashant_q7@lab.ntt.co.jp>2018-03-06 17:31:32 +0900
committerDavid S. Miller <davem@davemloft.net>2018-03-07 12:26:05 -0500
commit4d1e46a55ea9f8d693ceabe1ba4b056e55fb6625 (patch)
treeb1394e87bcad093f5870962117a51c582174cd5d /tools
parent6e61e10a8a9655424cf03c0fb44d282b40f402a2 (diff)
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>
Diffstat (limited to 'tools')
-rwxr-xr-xtools/testing/selftests/net/in_netns.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/testing/selftests/net/in_netns.sh b/tools/testing/selftests/net/in_netns.sh
index f57a2eaad069..88795b510b32 100755
--- a/tools/testing/selftests/net/in_netns.sh
+++ b/tools/testing/selftests/net/in_netns.sh
@@ -19,5 +19,5 @@ cleanup() {
trap cleanup EXIT
setup
-"$@"
+ip netns exec "${NETNS}" "$@"
exit "$?"