test: Fix intermittent failure.
authorAlex Wang <alexw@nicira.com>
Tue, 23 Dec 2014 08:50:10 +0000 (00:50 -0800)
committerAlex Wang <alexw@nicira.com>
Tue, 23 Dec 2014 21:19:36 +0000 (13:19 -0800)
This commit fixes the intermittent failure of test (ofproto-dpif,
balance-tcp bonding, different recirc flow), by waiting for all
bond interfaces to be enabled.

Signed-off-by: Alex Wang <alexw@nicira.com>
Acked-by: Joe Stringer <joestringer@nicira.com>
tests/ofproto-dpif.at

index 55c3e90..43bde4a 100644 (file)
@@ -174,6 +174,9 @@ OVS_VSWITCHD_START(
 AT_CHECK([ovs-appctl netdev-dummy/set-admin-state up], 0, [OK
 ])
 
+# Waits for all ifaces enabled.
+OVS_WAIT_UNTIL([test `ovs-appctl bond/show | grep -- "may_enable: true" |  wc -l` -ge 4])
+
 # The dl_vlan flow should not be ever matched,
 # since recirculation should not change the flow handling.
 AT_DATA([flows.txt], [dnl