[ovs-dev] [PATCH] tests: Re-fix a race.
Ethan Jackson
ethan at nicira.com
Thu Jan 30 23:46:36 UTC 2014
Patch bf06c4fe (tests/ofproto-dpif.at: Workaround a race.), fixed a
race condition which patch 0a8763f (ofproto-dpif-upcall: Hardcode
max_idle to 1500ms.) unfixed.
Signed-off-by: Ethan Jackson <ethan at nicira.com>
Reported-by: YAMAMOTO Takashi <yamamoto at valinux.co.jp>
---
tests/ofproto-dpif.at | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/tests/ofproto-dpif.at b/tests/ofproto-dpif.at
index 1348790..7560f2a 100644
--- a/tests/ofproto-dpif.at
+++ b/tests/ofproto-dpif.at
@@ -2442,10 +2442,16 @@ AT_CHECK([ovs-ofctl add-flow br1 actions=LOCAL,output:1,output:3])
for i in $(seq 1 10); do
ovs-appctl netdev-dummy/receive br0 'in_port(100),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)'
+ if [[ $i -eq 1 ]]; then
+ sleep 1
+ fi
done
for i in $(seq 1 5); do
ovs-appctl netdev-dummy/receive br1 'in_port(101),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=8,code=0)'
+ if [[ $i -eq 1 ]]; then
+ sleep 1
+ fi
done
AT_CHECK([ovs-appctl time/warp 500], [0],
--
1.8.1.2
More information about the dev
mailing list