tests: Fix race in 'balance-tcp bonding' test.
authorJoe Stringer <joestringer@nicira.com>
Fri, 4 Jul 2014 06:58:28 +0000 (06:58 +0000)
committerJoe Stringer <joestringer@nicira.com>
Mon, 7 Jul 2014 22:21:54 +0000 (10:21 +1200)
commit48105e85a56753ab9f22c1644404755dc40db997
tree3c9ee395f0106d19b4ae2aa7f3edfb68a39ff7fc
parent91e12f0d0f68c59d98b7f4a830cc828145057a64
tests: Fix race in 'balance-tcp bonding' test.

Running the test in a tight loop could cause this test to fail after
about 5 runs, with some of the ports reporting "may_enable: false" in
the "ovs-appctl bond/show" output. This commit fixes the race condition
by waiting for may_enable to be true for all bond ports.

I suspect that LACP negotiation finishes, but the main thread doesn't
have a chance to enable the ports before we send the test packets.

Signed-off-by: Joe Stringer <joestringer@nicira.com>
Acked-by: Ben Pfaff <blp@nicira.com>
tests/ofproto-dpif.at