selftests: mptcp: make evts global in userspace_pm
authorGeliang Tang <geliang.tang@suse.com>
Wed, 30 Nov 2022 14:06:30 +0000 (15:06 +0100)
committerJakub Kicinski <kuba@kernel.org>
Fri, 2 Dec 2022 04:06:07 +0000 (20:06 -0800)
commit1cc94ac1af4b18c69981425df6f0355f13d9304d
tree90a12a5f6ac90afe326d9a31ab15155d1d5e4782
parent7dff74f5716edf2f0288fe4cdcb4feeeb6a9383b
selftests: mptcp: make evts global in userspace_pm

This patch makes server_evts and client_evts global in userspace_pm.sh,
then these two variables could be used in test_announce(), test_remove()
and test_subflows(). The local variable 'evts' in these three functions
then could be dropped.

Also move local variable 'file' as a global one.

Suggested-by: Paolo Abeni <pabeni@redhat.com>
Signed-off-by: Geliang Tang <geliang.tang@suse.com>
Acked-by: Paolo Abeni <pabeni@redhat.com>
Signed-off-by: Matthieu Baerts <matthieu.baerts@tessares.net>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
tools/testing/selftests/net/mptcp/userspace_pm.sh