selftests: forwarding: tc_actions: cleanup temporary files when test is aborted
authorDavide Caratti <dcaratti@redhat.com>
Tue, 14 Feb 2023 09:52:37 +0000 (10:52 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 23 Aug 2023 15:52:18 +0000 (17:52 +0200)
commit306a5dddfb124af7d920a8b59a9f8df3747d4e1f
tree6d0694d41f76f6dfa8443954d0151d357f4c1a59
parentf872672edd5eb02c61a3630d0c3ba4a3c919b479
selftests: forwarding: tc_actions: cleanup temporary files when test is aborted

[ Upstream commit f58531716ced8975a4ade108ef4af35f98722af7 ]

remove temporary files created by 'mirred_egress_to_ingress_tcp' test
in the cleanup() handler. Also, change variable names to avoid clashing
with globals from lib.sh.

Suggested-by: Paolo Abeni <pabeni@redhat.com>
Signed-off-by: Davide Caratti <dcaratti@redhat.com>
Link: https://lore.kernel.org/r/091649045a017fc00095ecbb75884e5681f7025f.1676368027.git.dcaratti@redhat.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Stable-dep-of: 5e8670610b93 ("selftests: forwarding: tc_actions: Use ncat instead of nc")
Signed-off-by: Sasha Levin <sashal@kernel.org>
tools/testing/selftests/net/forwarding/tc_actions.sh