There is no guarantee that ovn-northd and not its 'backup' gets
the lock. Hence we need to check both logs.

Signed-off-by: Xavier Simonart <xsimo...@redhat.com>
---
 tests/ovn.at | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/tests/ovn.at b/tests/ovn.at
index d4e0016e5..02c763593 100644
--- a/tests/ovn.at
+++ b/tests/ovn.at
@@ -25418,7 +25418,9 @@ check_row_count Service_Monitor 0
 # Let's also be sure the warning message about SCTP load balancers is
 # is in the ovn-northd log
 
-AT_CHECK([test 1 = `grep -c "SCTP load balancers do not currently support 
health checks" northd/NORTHD_TYPE.log`])
+cnt1=`grep -c "SCTP load balancers do not currently support health checks" 
northd/NORTHD_TYPE.log`
+cnt2=`grep -c "SCTP load balancers do not currently support health checks" 
northd-backup/NORTHD_TYPE.log`
+AT_CHECK([test 1 -le "$(($cnt1 + $cnt2))"])
 
 AT_CLEANUP
 ])
-- 
2.31.1

_______________________________________________
dev mailing list
d...@openvswitch.org
https://mail.openvswitch.org/mailman/listinfo/ovs-dev

Reply via email to