]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
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>
Sat, 26 Aug 2023 12:23:21 +0000 (14:23 +0200)
commitd61a0886d3365038f65f6c57afacdb7bdc820464
tree29edc8191725a8ecaf1ad69fce73f4aed710c14d
parenta798977df6d0636865b23e3b0f76255513c47546
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