[ovs-dev] [PATCH v2 2/3] tests: sleep to allow revalidators to dump every flow

Daniele Di Proietto ddiproietto at vmware.com
Thu May 22 17:13:23 UTC 2014


Signed-off-by: Daniele Di Proietto <ddiproietto at vmware.com>
---
 tests/ofproto-dpif.at | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/tests/ofproto-dpif.at b/tests/ofproto-dpif.at
index b87f735..6e89f04 100644
--- a/tests/ofproto-dpif.at
+++ b/tests/ofproto-dpif.at
@@ -1551,7 +1551,11 @@ NXT_PACKET_IN (xid=0x0): cookie=0xd total_len=58 in_port=1 (via action) data_len
 tcp,metadata=0,in_port=0,vlan_tci=0x0000,dl_src=60:66:66:66:66:66,dl_dst=50:54:00:00:00:07,nw_src=192.168.0.1,nw_dst=192.168.0.2,nw_tos=0,nw_ecn=0,nw_ttl=64,tp_src=80,tp_dst=0,tcp_flags=0x000 tcp_csum:7744
 ])
 
+# The sleeps should allow revalidators to update stats
 AT_CHECK([ovs-appctl time/warp 5000], [0], [ignore])
+sleep 1
+AT_CHECK([ovs-appctl time/warp 5000], [0], [ignore])
+sleep 1
 
 AT_CHECK([ovs-ofctl dump-flows br0 | ofctl_strip | sort], [0], [dnl
  cookie=0xa, n_packets=3, n_bytes=180, dl_src=40:44:44:44:44:42 actions=push_mpls:0x8847,load:0xa->OXM_OF_MPLS_LABEL[[]],load:0x3->OXM_OF_MPLS_TC[[]],CONTROLLER:65535
-- 
2.0.0.rc0




More information about the dev mailing list