diff options
author | Aaron Conole <aconole@redhat.com> | 2023-10-11 22:49:37 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2023-10-15 22:02:51 +0300 |
commit | af846afad5ca1c1a24d320adf9e48255e97db84e (patch) | |
tree | 0dfc2cec5023de9aa9f0c5eb8764dd9508f53e5e /tools | |
parent | 92e37f20f20a23fec4626ae72eda50f127acb130 (diff) | |
download | linux-af846afad5ca1c1a24d320adf9e48255e97db84e.tar.xz |
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 <aconole@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'tools')
-rwxr-xr-x | tools/testing/selftests/net/openvswitch/openvswitch.sh | 2 |
1 files changed, 2 insertions, 0 deletions
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 |