]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
selftests: mptcp: pm: rm the right tmp file
authorMatthieu Baerts <matthieu.baerts@tessares.net>
Fri, 15 May 2020 15:54:41 +0000 (17:54 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 15 May 2020 17:33:56 +0000 (10:33 -0700)
"$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 <matthieu.baerts@tessares.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
tools/testing/selftests/net/mptcp/pm_netlink.sh

index 9172746b6cf026faeb87663673d8ea3cc462f0a9..15f4f46ca3a90f04bcf464d6e9618d909b5a7cc7 100755 (executable)
@@ -30,7 +30,7 @@ ret=0
 
 cleanup()
 {
-       rm -f $out
+       rm -f $err
        ip netns del $ns1
 }