diff mbox series

[net,2/4] selftests: openvswitch: Catch cases where the tests are killed

Message ID 20231006151258.983906-3-aconole@redhat.com
State Accepted
Commit af846afad5ca1c1a24d320adf9e48255e97db84e
Headers show
Series selftests: openvswitch: Minor fixes for some systems | expand

Commit Message

Aaron Conole Oct. 6, 2023, 3:12 p.m. UTC
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>
---
 tools/testing/selftests/net/openvswitch/openvswitch.sh | 2 ++
 1 file changed, 2 insertions(+)
diff mbox series

Patch

diff --git a/tools/testing/selftests/net/openvswitch/openvswitch.sh b/tools/testing/selftests/net/openvswitch/openvswitch.sh
index 220c3356901ef..2a0112be7ead5 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