Skip to content

Commit

Permalink
Rename decorator
Browse files Browse the repository at this point in the history
  • Loading branch information
yejianquan committed Jan 22, 2025
1 parent d4c20e2 commit 8c4c052
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions tests/common/config_reload.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import os

from tests.common.helpers.assertions import pytest_assert
from tests.common.plugins.loganalyzer.utils import ignore_loganalyzer
from tests.common.plugins.loganalyzer.utils import support_ignore_loganalyzer
from tests.common.platform.processes_utils import wait_critical_processes
from tests.common.utilities import wait_until
from tests.common.configlet.utils import chk_for_pfc_wd
Expand Down Expand Up @@ -112,7 +112,7 @@ def pfcwd_feature_enabled(duthost):
return pfc_status == 'enable' and switch_role not in ['MgmtToRRouter', 'BmcMgmtToRRouter']


@ignore_loganalyzer
@support_ignore_loganalyzer
def config_reload(sonic_host, config_source='config_db', wait=120, start_bgp=True, start_dynamic_buffer=True,
safe_reload=False, wait_before_force_reload=0, wait_for_bgp=False,
check_intf_up_ports=False, traffic_shift_away=False, override_config=False,
Expand Down
2 changes: 1 addition & 1 deletion tests/common/plugins/loganalyzer/utils.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from functools import wraps


def ignore_loganalyzer(func):
def support_ignore_loganalyzer(func):
@wraps(func)
def decorated(*args, **kwargs):
"""
Expand Down
4 changes: 2 additions & 2 deletions tests/common/reboot.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
from .helpers.assertions import pytest_assert
from .platform.interface_utils import check_interface_status_of_up_ports
from .platform.processes_utils import wait_critical_processes
from .plugins.loganalyzer.utils import ignore_loganalyzer
from .plugins.loganalyzer.utils import support_ignore_loganalyzer
from .utilities import wait_until, get_plt_reboot_ctrl
from tests.common.helpers.dut_utils import ignore_t2_syslog_msgs, create_duthost_console, creds_on_dut
from tests.common.fixtures.conn_graph_facts import get_graph_facts
Expand Down Expand Up @@ -224,7 +224,7 @@ def execute_reboot_helper():
return [reboot_res, dut_datetime]


@ignore_loganalyzer
@support_ignore_loganalyzer
def reboot(duthost, localhost, reboot_type='cold', delay=10,
timeout=0, wait=0, wait_for_ssh=True, wait_warmboot_finalizer=False, warmboot_finalizer_timeout=0,
reboot_helper=None, reboot_kwargs=None, return_after_reconnect=False,
Expand Down

0 comments on commit 8c4c052

Please sign in to comment.