From: Aaron Conole Date: Wed, 11 Oct 2023 19:49:37 +0000 (-0400) Subject: selftests: openvswitch: Catch cases where the tests are killed X-Git-Tag: v6.6-rc7~28^2~26^2~2 X-Git-Url: https://git.kernel.dk/?a=commitdiff_plain;h=af846afad5ca1c1a24d320adf9e48255e97db84e;p=linux-2.6-block.git selftests: openvswitch: Catch cases where the tests are killed 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 Signed-off-by: David S. Miller --- diff --git a/tools/testing/selftests/net/openvswitch/openvswitch.sh b/tools/testing/selftests/net/openvswitch/openvswitch.sh index 220c3356901e..2a0112be7ead 100755 --- a/tools/testing/selftests/net/openvswitch/openvswitch.sh +++ b/tools/testing/selftests/net/openvswitch/openvswitch.sh @@ -3,6 +3,8 @@ # # OVS kernel module self tests +trap ovs_exit_sig EXIT TERM INT ERR + # Kselftest framework requirement - SKIP code is 4. ksft_skip=4