diff mbox series

[ovs-dev,v1,2/2] dpdk-testsuite: Filter 1G HugePages WARN log.

Message ID 1525365344-166668-2-git-send-email-tiago.lam@intel.com
State Accepted
Delegated to: Ian Stokes
Headers show
Series [ovs-dev,v1,1/2] gitignore: Ignore system-dpdk-testsuite | expand

Commit Message

Lam, Tiago May 3, 2018, 4:35 p.m. UTC
Currently, DPDK prints a WARN log if one doesn't have 1GB HugePages
available. Since OVS_SWITCHD_STOP considers any WARN a failure, the
newly added DPDK testsuite tests fail if one doesn't have 1GB Hugepages
configured, even though it is still possible to run OvS-DPDK over 2MB
HugePages.

This changes the tests to filter for the following message, meaning it
will start being ignored and systems with 2MB HugePages can run the tests
successfully:
    EAL: No free hugepages reported in hugepages-1048576kB

Signed-off-by: Tiago Lam <tiago.lam@intel.com>
---
 tests/system-dpdk.at | 12 +++++++++---
 1 file changed, 9 insertions(+), 3 deletions(-)
diff mbox series

Patch

diff --git a/tests/system-dpdk.at b/tests/system-dpdk.at
index 1f1839e..3d21b01 100644
--- a/tests/system-dpdk.at
+++ b/tests/system-dpdk.at
@@ -9,7 +9,9 @@  OVS_DPDK_START()
 AT_CHECK([grep "DPDK Enabled - initializing..." ovs-vswitchd.log], [], [stdout])
 AT_CHECK([grep "EAL" ovs-vswitchd.log], [], [stdout])
 AT_CHECK([grep "DPDK Enabled - initialized" ovs-vswitchd.log], [], [stdout])
-OVS_VSWITCHD_STOP("/Global register is changed during/d")
+OVS_VSWITCHD_STOP("/Global register is changed during/d
+/EAL: No free hugepages reported in hugepages-1048576kB/d
+")
 AT_CLEANUP
 dnl --------------------------------------------------------------------------
 
@@ -33,7 +35,9 @@  dnl Clean up
 AT_CHECK([ovs-vsctl del-port br10 phy0], [], [stdout], [stderr])
 OVS_VSWITCHD_STOP("/does not exist. The Open vSwitch kernel module is probably not loaded./d
 /Failed to enable flow control/d
-/Global register is changed during/d")
+/Global register is changed during/d
+/EAL: No free hugepages reported in hugepages-1048576kB/d
+")
 AT_CLEANUP
 dnl --------------------------------------------------------------------------
 
@@ -62,6 +66,8 @@  AT_CHECK([ovs-vsctl del-port br10 dpdkvhostuserclient0], [], [stdout], [stderr])
 OVS_VSWITCHD_STOP("/does not exist. The Open vSwitch kernel module is probably not loaded./d
 /Failed to enable flow control/d
 /failed to connect to \/tmp\/dpdkvhostclient0: No such file or directory/d
-/Global register is changed during/d")
+/Global register is changed during/d
+/EAL: No free hugepages reported in hugepages-1048576kB/d
+")
 AT_CLEANUP
 dnl --------------------------------------------------------------------------