From: Matthieu Baerts Date: Fri, 15 May 2020 15:54:41 +0000 (+0200) Subject: selftests: mptcp: pm: rm the right tmp file X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=9a2dbb59ebd17a91f99a20b0286dfb6445981ecf;p=linux.git selftests: mptcp: pm: rm the right tmp file "$err" is a variable pointing to a temp file. "$out" is not: only used as a local variable in "check()" and representing the output of a command line. Fixes: eedbc685321b (selftests: add PM netlink functional tests) Signed-off-by: Matthieu Baerts Signed-off-by: David S. Miller --- diff --git a/tools/testing/selftests/net/mptcp/pm_netlink.sh b/tools/testing/selftests/net/mptcp/pm_netlink.sh index 9172746b6cf02..15f4f46ca3a90 100755 --- a/tools/testing/selftests/net/mptcp/pm_netlink.sh +++ b/tools/testing/selftests/net/mptcp/pm_netlink.sh @@ -30,7 +30,7 @@ ret=0 cleanup() { - rm -f $out + rm -f $err ip netns del $ns1 }