Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ecmp] Skip warm-reboot tests on dualtor #16643

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions tests/ecmp/test_ecmp_sai_value.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import logging
from tests.common import config_reload
from tests.common.helpers.assertions import pytest_assert
from tests.common.helpers.assertions import pytest_require
from tests.common.platform.processes_utils import wait_critical_processes
from tests.common.utilities import get_host_visible_vars
from tests.common.reboot import reboot, REBOOT_TYPE_COLD, REBOOT_TYPE_WARM
Expand Down Expand Up @@ -201,6 +202,11 @@ def test_ecmp_hash_seed_value(localhost, duthosts, tbinfo, enum_rand_one_per_hws
"""
Check ecmp HASH_SEED
"""
pytest_require(
not (parameter == "warm-reboot" and "dualtor" in tbinfo["topo"]["name"]),
"Skip warm reboot test on dualtor topology"
)

duthost = duthosts[enum_rand_one_per_hwsku_frontend_hostname]
asic = duthost.facts["asic_type"]
topo_type = tbinfo['topo']['type']
Expand Down Expand Up @@ -250,6 +256,10 @@ def test_ecmp_offset_value(localhost, duthosts, tbinfo, enum_rand_one_per_hwsku_
"""
Check ecmp HASH_OFFSET
"""
pytest_require(
not (parameter == "warm-reboot" and "dualtor" in tbinfo["topo"]["name"]),
"Skip warm reboot test on dualtor topology"
)
duthost = duthosts[enum_rand_one_per_hwsku_frontend_hostname]
asic = duthost.facts["asic_type"]
topo_type = tbinfo['topo']['type']
Expand Down
Loading