From: Prashant Bhole Date: Tue, 6 Mar 2018 08:31:32 +0000 (+0900) Subject: selftests/net: fix in_netns.sh script X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=4d1e46a55ea9f8d693ceabe1ba4b056e55fb6625;p=openwrt%2Fstaging%2Fblogic.git 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 Acked-by: Willem de Bruijn Signed-off-by: David S. Miller --- 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 "$?"