Skip to content

Commit

Permalink
test: Fix intermittent failure.
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
yew011 committed Dec 23, 2014
1 parent dfba2df commit f12bfd0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/ofproto-dpif.at
Expand Up @@ -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
Expand Down

0 comments on commit f12bfd0

Please sign in to comment.