提交 4d1e46a5 编写于 作者: P Prashant Bhole 提交者: 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: NPrashant Bhole <bhole_prashant_q7@lab.ntt.co.jp>
Acked-by: NWillem de Bruijn <willemb@google.com>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 6e61e10a
......@@ -19,5 +19,5 @@ cleanup() {
trap cleanup EXIT
setup
"$@"
ip netns exec "${NETNS}" "$@"
exit "$?"
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册