ACK: [F/J/K][OEM-5.17/OEM-6.0][SRU][PATCH 0/1] selftest: fib_tests: Always cleanup before exit
Andrei Gherzan
andrei.gherzan at canonical.com
Wed Apr 12 09:45:01 UTC 2023
On 23/04/12 01:06PM, Po-Hsu Lin wrote:
> [Impact]
> Copied from the 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 on KVM kernels, which is expected to fail
> due to bug 2007458.
> Check with `ip netns`, the ns1 added during setup() should be removed.
>
> [Where problems could occur]
> Test robustness improvement, this should not break things.
>
> Roxana Nicolescu (1):
> selftest: fib_tests: Always cleanup before exit
>
> tools/testing/selftests/net/fib_tests.sh | 2 ++
> 1 file changed, 2 insertions(+)
>
> --
> 2.7.4
Acked-by: Andrei Gherzan <andrei.gherzan at canonical.com>
--
Andrei Gherzan
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <https://lists.ubuntu.com/archives/kernel-team/attachments/20230412/8f9175b5/attachment.sig>
More information about the kernel-team
mailing list