From 47461f0aa48e2cc78c633ee00e9ee02de80ca9a1 Mon Sep 17 00:00:00 2001 From: Jingwen Xie Date: Fri, 28 Jan 2022 12:00:53 +0000 Subject: [PATCH 1/2] fix failure --- tests/generic_config_updater/test_cacl.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/generic_config_updater/test_cacl.py b/tests/generic_config_updater/test_cacl.py index 7157c578248..70232b09a46 100644 --- a/tests/generic_config_updater/test_cacl.py +++ b/tests/generic_config_updater/test_cacl.py @@ -1,5 +1,6 @@ import logging import pytest +import time from tests.common.helpers.assertions import pytest_assert from tests.generic_config_updater.gu_utils import apply_patch, expect_op_success, expect_res_success, expect_op_failure @@ -94,6 +95,7 @@ def expect_acl_table_match(duthost, table_name, expected_content_list): def expect_res_success_acl_rule(duthost, expected_content_list, unexpected_content_list): """Check if acl rule added as expected """ + time.sleep(1) # Sleep 1 sec to ensure caclmgrd does update in case of its UPDATE_DELAY_SECS 0.5s cmds = "iptables -S" output = duthost.shell(cmds) pytest_assert(not output['rc'], From 1b105584683cc4132e057510f41324bd1a12d12a Mon Sep 17 00:00:00 2001 From: Jingwen Xie Date: Sat, 29 Jan 2022 01:24:43 +0000 Subject: [PATCH 2/2] revert cacl test --- tests/kvmtest.sh | 1 - 1 file changed, 1 deletion(-) diff --git a/tests/kvmtest.sh b/tests/kvmtest.sh index 09a042d9188..e8d07c97b12 100755 --- a/tests/kvmtest.sh +++ b/tests/kvmtest.sh @@ -152,7 +152,6 @@ test_t0() { container_checker/test_container_checker.py \ process_monitoring/test_critical_process_monitoring.py \ system_health/test_system_status.py \ - generic_config_updater/test_cacl.py \ generic_config_updater/test_lo_interface.py \ generic_config_updater/test_vlan_interface.py \ generic_config_updater/test_portchannel_interface.py \