Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
selftest: fib_tests: Always cleanup before exit
[ Upstream commit b60417a ] Usage of `set -e` before executing a command causes immediate exit on failure, without cleanup up the resources allocated at setup. This can affect the next tests that use the same resources, leading to a chain of failures. A simple fix is to always call cleanup function when the script exists. This approach is already used by other existing tests. Fixes: 1056691 ("selftests: fib_tests: Make test results more verbose") Signed-off-by: Roxana Nicolescu <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Paolo Abeni <[email protected]> Signed-off-by: Sasha Levin <[email protected]>
- Loading branch information