selftests: openvswitch: Catch cases where the tests are killed
authorAaron Conole <aconole@redhat.com>
Wed, 11 Oct 2023 19:49:37 +0000 (15:49 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 25 Oct 2023 10:03:07 +0000 (12:03 +0200)
commit0bb15735121d2e3f02a979cf8f4d2a1d8f221c11
tree61c218e601a7e9cd763b8900506b2d10513e88b0
parente0914e5a05dda752b42a25f112053f2fb3e60780
selftests: openvswitch: Catch cases where the tests are killed

commit af846afad5ca1c1a24d320adf9e48255e97db84e upstream.

In case of fatal signal, or early abort at least cleanup the current
test case.

Fixes: 25f16c873fb1 ("selftests: add openvswitch selftest suite")
Signed-off-by: Aaron Conole <aconole@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
tools/testing/selftests/net/openvswitch/openvswitch.sh