ovn-controller.at: fix occasional ovn-bridge-mappings test failure
This patch fixes the time issue in the test case so that when external-ids
is updated in Open_vSwitch OVSDB, give some time for SB OVSDB to get
updated by ovn-controller.
@@ -51,10 +51,7 @@ patch
check_bridge_mappings () {
local_mappings=$1
sysid=$(ovs-vsctl get Open_vSwitch . external_ids:system-id)
- chassis_mappings=$(ovn-sbctl get Chassis ${sysid} external_ids:ovn-bridge-mappings | sed -e 's/\"//g')
- echo $local_mappings
- echo $chassis_mappings
- AT_CHECK([test "${local_mappings}" = "${chassis_mappings}"])
+ OVS_WAIT_UNTIL([test x"${local_mappings}" = x$(ovn-sbctl get Chassis ${sysid} external_ids:ovn-bridge-mappings | sed -e 's/\"//g')])
}
# Initially there should be no patch ports.
