diff options
author | Paolo Abeni <pabeni@redhat.com> | 2022-02-24 16:52:58 -0800 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2022-02-24 21:54:54 -0800 |
commit | 63bb8239d80571204c61d19c73f7bf5e3d9ef5fa (patch) | |
tree | e0674b0e5e08b206dea4d571d661b8e6a58e25f5 /tools/testing | |
parent | 07c2c7a3b622e109ba4d2efd916da0477617ce81 (diff) | |
download | linux-stable-63bb8239d80571204c61d19c73f7bf5e3d9ef5fa.tar.gz linux-stable-63bb8239d80571204c61d19c73f7bf5e3d9ef5fa.tar.bz2 linux-stable-63bb8239d80571204c61d19c73f7bf5e3d9ef5fa.zip |
selftests: mptcp: do complete cleanup at exit
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>
Diffstat (limited to 'tools/testing')
-rwxr-xr-x | tools/testing/selftests/net/mptcp/mptcp_connect.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/testing/selftests/net/mptcp/mptcp_connect.sh b/tools/testing/selftests/net/mptcp/mptcp_connect.sh index cb5809b89081..f0f4ab96b8f3 100755 --- a/tools/testing/selftests/net/mptcp/mptcp_connect.sh +++ b/tools/testing/selftests/net/mptcp/mptcp_connect.sh @@ -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 |