Comment 0 for bug 2015956

Revision history for this message
Po-Hsu Lin (cypressyew) wrote :

[Impact]
(Cpoied from commit message)
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.

[Fix]
* b60417a9f2 selftest: fib_tests: Always cleanup before exit

This patch can be cherry-picked into affected kernels.

[Test]
Run the patched fib_tests.sh