The test waits until grep no vlan '200' from the VTEP 'vlan_binding'
column.  However, string '200' could also appear in other 'vlan_binding'
entry's uuid value.  Instead, we should grep for '200='.

Signed-off-by: Alex Wang <al...@nicira.com>
---
 tests/ovn-controller-vtep.at |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/ovn-controller-vtep.at b/tests/ovn-controller-vtep.at
index ed9cc50..82f6166 100644
--- a/tests/ovn-controller-vtep.at
+++ b/tests/ovn-controller-vtep.at
@@ -129,7 +129,7 @@ AT_CHECK([ovn-sbctl --columns=vtep_logical_switches list 
Chassis | cut -d ':' -f
 
 # unbinds one port from lswitch0, nothing should change.
 AT_CHECK([vtep-ctl unbind-ls br-vtep p0 200])
-OVS_WAIT_UNTIL([test -z "`vtep-ctl --columns=vlan_bindings list physical_port 
p0 | grep -- 200`"])
+OVS_WAIT_UNTIL([test -z "`vtep-ctl --columns=vlan_bindings list physical_port 
p0 | grep -- '200='`"])
 AT_CHECK([ovn-sbctl --columns=vtep_logical_switches list Chassis | cut -d ':' 
-f2 | tr -d ' ' ], [0], [dnl
 [["lswitch0","lswitch1"]]
 ])
-- 
1.7.9.5

_______________________________________________
dev mailing list
dev@openvswitch.org
http://openvswitch.org/mailman/listinfo/dev

Reply via email to