selftests: mptcp: join: create tmp files only if needed
authorMatthieu Baerts <matthieu.baerts@tessares.net>
Fri, 18 Feb 2022 03:03:09 +0000 (19:03 -0800)
committerJakub Kicinski <kuba@kernel.org>
Fri, 18 Feb 2022 03:59:59 +0000 (19:59 -0800)
commit93827ad58f6296bf15fa72265e55fb0f335fcf84
treea9f7f9db48fa9f41564564d8180e82795ff1910a
parent0a40e273be0416a9a00ecea89b7f61c841382b3e
selftests: mptcp: join: create tmp files only if needed

These tmp files will only be created when a test will be launched.

This avoid 'dd' output when '-h' is used for example.

While at it, also avoid creating netns that will be removed when
starting the first test.

Signed-off-by: Matthieu Baerts <matthieu.baerts@tessares.net>
Signed-off-by: Mat Martineau <mathew.j.martineau@linux.intel.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
tools/testing/selftests/net/mptcp/mptcp_join.sh