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)
committerJakub Kicinski <kuba@kernel.org>
Thu, 16 Feb 2023 05:34:07 +0000 (21:34 -0800)
commitf58531716ced8975a4ade108ef4af35f98722af7
treeb3a0c114b657df9025ac5673b9f883d9815d7f54
parent1b8d1c5088efa5af881e8e78c80bd1197dc4c420
selftests: forwarding: tc_actions: cleanup temporary files when test is aborted

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>
tools/testing/selftests/net/forwarding/tc_actions.sh