[ovs-dev] [PATCH 08/11] ofproto-dpif.at: Fix races in "NetFlow flow expiration" tests
YAMAMOTO Takashi
yamamoto at valinux.co.jp
Sun Apr 6 02:30:10 UTC 2014
Signed-off-by: YAMAMOTO Takashi <yamamoto at valinux.co.jp>
---
tests/ofproto-dpif.at | 1 +
1 file changed, 1 insertion(+)
diff --git a/tests/ofproto-dpif.at b/tests/ofproto-dpif.at
index ea844d6..1662e9d 100644
--- a/tests/ofproto-dpif.at
+++ b/tests/ofproto-dpif.at
@@ -3154,6 +3154,7 @@ m4_define([CHECK_NETFLOW_EXPIRATION],
for delay in 1000 30000; do
ovs-appctl netdev-dummy/receive p1 'in_port(2),eth(src=50:54:00:00:00:05,dst=50:54:00:00:00:07),eth_type(0x0800),ipv4(src=192.168.0.1,dst=192.168.0.2,proto=1,tos=0,ttl=64,frag=no),icmp(type=8,code=0)'
+ sleep 1 # ensure the order in which these two packets are processed
ovs-appctl netdev-dummy/receive p2 'in_port(1),eth(src=50:54:00:00:00:07,dst=50:54:00:00:00:05),eth_type(0x0800),ipv4(src=192.168.0.2,dst=192.168.0.1,proto=1,tos=0,ttl=64,frag=no),icmp(type=0,code=0)'
ovs-appctl time/warp $delay
--
1.8.3.1
More information about the dev
mailing list