]> git.baikalelectronics.ru Git - kernel.git/commitdiff
selftests: mptcp: do complete cleanup at exit
authorPaolo Abeni <pabeni@redhat.com>
Fri, 25 Feb 2022 00:52:58 +0000 (16:52 -0800)
committerJakub Kicinski <kuba@kernel.org>
Fri, 25 Feb 2022 05:54:54 +0000 (21:54 -0800)
After commit 05be5e273c84 ("selftests: mptcp: add disconnect tests")
the mptcp selftests leave behind a couple of tmp files after
each run. run_tests_disconnect() misnames a few variables used to
track them. Address the issue setting the appropriate global variables

Fixes: 05be5e273c84 ("selftests: mptcp: add disconnect tests")
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
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_connect.sh

index cb5809b89081003ff0b6baa34bf236a601af1eea..f0f4ab96b8f3e10d40d3b04758fea87cb36cc2b8 100755 (executable)
@@ -763,8 +763,8 @@ run_tests_disconnect()
        run_tests_lo "$ns1" "$ns1" dead:beef:1::1 1 "-I 3 -i $old_cin"
 
        # restore previous status
-       cout=$old_cout
-       cout_disconnect="$cout".disconnect
+       sin=$old_sin
+       sin_disconnect="$cout".disconnect
        cin=$old_cin
        cin_disconnect="$cin".disconnect
        connect_per_transfer=1