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.
Signed-off-by: Han Zhou <[email protected]> --- Notes: v1->v2: use OVS_WAIT_UNTIL instead of sleep 1 tests/ovn-controller.at | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/tests/ovn-controller.at b/tests/ovn-controller.at index 3244707..00900d4 100644 --- a/tests/ovn-controller.at +++ b/tests/ovn-controller.at @@ -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. -- 2.1.0 _______________________________________________ dev mailing list [email protected] https://mail.openvswitch.org/mailman/listinfo/ovs-dev
