From e2198ebf82723d5569ad0b1a62ecb27b90fc720d Mon Sep 17 00:00:00 2001 From: Longxiang Lyu Date: Thu, 23 Jan 2025 03:29:28 +0000 Subject: [PATCH] [ecmp] Skip warm-reboot tests on dualtor Signed-off-by: Longxiang Lyu --- tests/ecmp/test_ecmp_sai_value.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/tests/ecmp/test_ecmp_sai_value.py b/tests/ecmp/test_ecmp_sai_value.py index 05c02e51d55..c0505901c76 100644 --- a/tests/ecmp/test_ecmp_sai_value.py +++ b/tests/ecmp/test_ecmp_sai_value.py @@ -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 @@ -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'] @@ -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']