diff mbox series

[ovs-dev,02/12] tests: Fixed flaky system-test ACL log_related

Message ID 20221202135137.1728564-3-xsimonar@redhat.com
State Accepted
Headers show
Series Fixes to multiple Unit and System Tests | expand

Checks

Context Check Description
ovsrobot/apply-robot success apply and check: success
ovsrobot/github-robot-_Build_and_Test success github build: passed
ovsrobot/github-robot-_ovn-kubernetes fail github build: failed

Commit Message

Xavier Simonart Dec. 2, 2022, 1:51 p.m. UTC
Signed-off-by: Xavier Simonart <xsimonar@redhat.com>
---
 tests/system-ovn.at | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)
diff mbox series

Patch

diff --git a/tests/system-ovn.at b/tests/system-ovn.at
index f29de4887..7c56e8ef0 100644
--- a/tests/system-ovn.at
+++ b/tests/system-ovn.at
@@ -7723,9 +7723,7 @@  test_ping() {
 check_acl_log_count() {
     local expected_count=$1
 
-    AT_CHECK_UNQUOTED([grep -c acl_log ovn-controller.log], [0], [dnl
-$expected_count
-])
+    OVS_WAIT_UNTIL([test $expected_count = `cat ovn-controller.log | grep -c acl_log`])
 }
 
 # Set external-ids in br-int needed for ovn-controller