summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorMichael Phelan <michael.phelan@intel.com>2022-07-20 16:26:20 +0000
committerIlya Maximets <i.maximets@ovn.org>2022-07-22 15:16:31 +0200
commitad026f40da6bbede84f1b1d4f203930c5974a5bc (patch)
tree2a7228258c48e47b517b9f1fb0522592b65050d0 /tests
parent5cd03632d0f27bb052da543cad92b189d2f4874a (diff)
downloadopenvswitch-ad026f40da6bbede84f1b1d4f203930c5974a5bc.tar.gz
system-dpdk: Add testpmd clean up in MTU unit tests.
The MTU vport unit tests do not clean up testpmd after use which causes them to fail randomly. This commit amends the MTU vport unit tests to clean up testpmd after running. Fixes: bf47829116a8 ("tests: Add OVS-DPDK MTU unit tests.") Reported-by: Ilya Maximets <i.maximets@ovn.org> Acked-by: Kumar Amber <kumar.amber@intel.com> Acked-by: Sunil Pai G <sunil.pai.g@intel.com> Signed-off-by: Michael Phelan <michael.phelan@intel.com> Signed-off-by: Ilya Maximets <i.maximets@ovn.org>
Diffstat (limited to 'tests')
-rw-r--r--tests/system-dpdk.at11
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/system-dpdk.at b/tests/system-dpdk.at
index 3beccda44..15f97097a 100644
--- a/tests/system-dpdk.at
+++ b/tests/system-dpdk.at
@@ -669,6 +669,9 @@ AT_CHECK([ovs-vsctl set Interface dpdkvhostuserclient0 mtu_request=9000])
AT_CHECK([ovs-appctl dpctl/show], [], [stdout])
AT_CHECK([egrep 'mtu=9000' stdout], [], [stdout])
+dnl Clean up the testpmd now
+pkill -f -x -9 'tail -f /dev/null'
+
dnl Clean up
AT_CHECK([ovs-vsctl del-port br10 dpdkvhostuserclient0], [], [stdout], [stderr])
OVS_VSWITCHD_STOP("m4_join([], [SYSTEM_DPDK_ALLOWED_LOGS], [
@@ -723,6 +726,9 @@ AT_CHECK([ovs-vsctl set Interface dpdkvhostuserclient0 mtu_request=2000])
AT_CHECK([ovs-appctl dpctl/show], [], [stdout])
AT_CHECK([egrep 'mtu=2000' stdout], [], [stdout])
+dnl Clean up the testpmd now
+pkill -f -x -9 'tail -f /dev/null'
+
dnl Clean up
AT_CHECK([ovs-vsctl del-port br10 dpdkvhostuserclient0], [], [stdout], [stderr])
OVS_VSWITCHD_STOP("m4_join([], [SYSTEM_DPDK_ALLOWED_LOGS], [
@@ -852,6 +858,9 @@ dnl Set MTU value above upper bound and check for error
AT_CHECK([ovs-vsctl set Interface dpdkvhostuserclient0 mtu_request=9711])
AT_CHECK([grep "dpdkvhostuserclient0: unsupported MTU 9711" ovs-vswitchd.log], [], [stdout])
+dnl Clean up the testpmd now
+pkill -f -x -9 'tail -f /dev/null'
+
dnl Clean up
AT_CHECK([ovs-vsctl del-port br10 dpdkvhostuserclient0], [], [stdout], [stderr])
OVS_VSWITCHD_STOP("m4_join([], [SYSTEM_DPDK_ALLOWED_LOGS], [
@@ -906,6 +915,8 @@ dnl Set MTU value below lower bound and check for error
AT_CHECK([ovs-vsctl set Interface dpdkvhostuserclient0 mtu_request=67])
AT_CHECK([grep "dpdkvhostuserclient0: unsupported MTU 67" ovs-vswitchd.log], [], [stdout])
+dnl Clean up the testpmd now
+pkill -f -x -9 'tail -f /dev/null'
dnl Clean up
AT_CHECK([ovs-vsctl del-port br10 dpdkvhostuserclient0], [], [stdout], [stderr])