[ovs-dev] [PATCH 02/11] ofproto-dpif.at: Avoid races in table miss tests
YAMAMOTO Takashi
yamamoto at valinux.co.jp
Sun Apr 6 02:30:04 UTC 2014
Signed-off-by: YAMAMOTO Takashi <yamamoto at valinux.co.jp>
---
tests/ofproto-dpif.at | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/tests/ofproto-dpif.at b/tests/ofproto-dpif.at
index 1749f60..89f2e35 100644
--- a/tests/ofproto-dpif.at
+++ b/tests/ofproto-dpif.at
@@ -530,6 +530,7 @@ tcp,metadata=0,in_port=0,vlan_tci=0x0000,dl_src=50:54:00:00:00:05,dl_dst=50:54:0
])
AT_CHECK([ovs-appctl time/warp 5000], [0], [ignore])
+sleep 1 # wait for revalidator to update stats
AT_CHECK([ovs-ofctl -OOpenFlow12 dump-flows br0 | ofctl_strip | sort], [0], [dnl
n_packets=3, n_bytes=180, actions=goto_table:1
OFPST_FLOW reply (OF1.2):
@@ -558,6 +559,7 @@ AT_CHECK([cat ofctl_monitor.log], [0], [dnl
])
AT_CHECK([ovs-appctl time/warp 5000], [0], [ignore])
+sleep 1 # wait for revalidator to update stats
AT_CHECK([ovs-ofctl -OOpenFlow12 dump-flows br0 | ofctl_strip | sort], [0], [dnl
n_packets=3, n_bytes=180, actions=resubmit(1,1)
OFPST_FLOW reply (OF1.2):
@@ -617,6 +619,7 @@ tcp,metadata=0,in_port=0,vlan_tci=0x0000,dl_src=50:54:00:00:00:05,dl_dst=50:54:0
])
AT_CHECK([ovs-appctl time/warp 5000], [0], [ignore])
+sleep 1 # wait for revalidator to update stats
AT_CHECK([ovs-ofctl -OOpenFlow12 dump-flows br0 | ofctl_strip | sort], [0], [dnl
table=1, n_packets=3, n_bytes=180, dl_src=10:11:11:11:11:11 actions=CONTROLLER:65535
OFPST_FLOW reply (OF1.2):
@@ -680,6 +683,7 @@ tcp,metadata=0,in_port=0,vlan_tci=0x0000,dl_src=50:54:00:00:00:05,dl_dst=50:54:0
])
AT_CHECK([ovs-appctl time/warp 5000], [0], [ignore])
+sleep 1 # wait for revalidator to update stats
AT_CHECK([ovs-ofctl -OOpenFlow12 dump-flows br0 | ofctl_strip | sort], [0], [dnl
n_packets=6, n_bytes=360, actions=goto_table:1
table=2, n_packets=3, n_bytes=180, dl_src=10:11:11:11:11:11 actions=CONTROLLER:65535
@@ -726,6 +730,7 @@ AT_CHECK([cat ofctl_monitor.log], [0], [dnl
])
AT_CHECK([ovs-appctl time/warp 5000], [0], [ignore])
+sleep 1 # wait for revalidator to update stats
AT_CHECK([ovs-ofctl -OOpenFlow12 dump-flows br0 | ofctl_strip | sort], [0], [dnl
n_packets=6, n_bytes=360, actions=resubmit(1,1)
table=2, dl_src=10:11:11:11:11:11 actions=CONTROLLER:65535
@@ -786,6 +791,7 @@ AT_CHECK([cat ofctl_monitor.log], [0], [dnl
])
AT_CHECK([ovs-appctl time/warp 5000], [0], [ignore])
+sleep 1 # wait for revalidator to update stats
AT_CHECK([ovs-ofctl -OOpenFlow12 dump-flows br0 | ofctl_strip | sort], [0], [dnl
n_packets=3, n_bytes=180, actions=goto_table:1
OFPST_FLOW reply (OF1.2):
@@ -817,6 +823,7 @@ AT_CHECK([cat ofctl_monitor.log], [0], [dnl
])
AT_CHECK([ovs-appctl time/warp 5000], [0], [ignore])
+sleep 1 # wait for revalidator to update stats
AT_CHECK([ovs-ofctl -OOpenFlow12 dump-flows br0 | ofctl_strip | sort], [0], [dnl
n_packets=3, n_bytes=180, actions=resubmit(1,1)
OFPST_FLOW reply (OF1.2):
--
1.8.3.1
More information about the dev
mailing list