Skip to content

Commit

Permalink
[ecmp] Skip warm-reboot tests on dualtor
Browse files Browse the repository at this point in the history
Signed-off-by: Longxiang Lyu <lolv@microsoft.com>
  • Loading branch information
lolyu committed Jan 23, 2025
1 parent 56aa539 commit e2198eb
Showing 1 changed file with 10 additions and 0 deletions.
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

0 comments on commit e2198eb

Please sign in to comment.