From 3afeb1b61408764ac7e907d072bbd8f8ba1b0c00 Mon Sep 17 00:00:00 2001 From: Vivek Kumar Verma Date: Wed, 14 May 2025 11:28:44 +0000 Subject: [PATCH 1/3] Skip fast / warm reboot testcases --- tests/snappi_tests/files/helper.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/snappi_tests/files/helper.py b/tests/snappi_tests/files/helper.py index b60f656d136..2d2b59302d9 100644 --- a/tests/snappi_tests/files/helper.py +++ b/tests/snappi_tests/files/helper.py @@ -33,10 +33,10 @@ def skip_warm_reboot(duthost, reboot_type): Returns: None """ - SKIP_LIST = ["td2"] + SKIP_LIST = ["td2", "jr2", "j2c+"] asic_type = duthost.get_asic_name() reboot_case_supported = True - if (reboot_type == "warm" or reboot_type == "fast") and is_cisco_device(duthost): + if (reboot_type == "warm" and is_cisco_device(duthost)) or reboot_type == "fast": reboot_case_supported = False elif is_broadcom_device(duthost) and asic_type in SKIP_LIST and "warm" in reboot_type: reboot_case_supported = False From a153c4b4df43fc051ec69f4d467846e78793f803 Mon Sep 17 00:00:00 2001 From: Vivek Kumar Verma Date: Wed, 28 May 2025 08:19:44 +0000 Subject: [PATCH 2/3] Skip fast reboot based on platform --- tests/snappi_tests/files/helper.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/snappi_tests/files/helper.py b/tests/snappi_tests/files/helper.py index 2d2b59302d9..074d6aca030 100644 --- a/tests/snappi_tests/files/helper.py +++ b/tests/snappi_tests/files/helper.py @@ -36,7 +36,9 @@ def skip_warm_reboot(duthost, reboot_type): SKIP_LIST = ["td2", "jr2", "j2c+"] asic_type = duthost.get_asic_name() reboot_case_supported = True - if (reboot_type == "warm" and is_cisco_device(duthost)) or reboot_type == "fast": + if (reboot_type == "fast") and (asic_type == "jr2" or asic_type=="j2c+"): + reboot_case_supported = False + elif (reboot_type == "warm" or reboot_type == "fast") and is_cisco_device(duthost): reboot_case_supported = False elif is_broadcom_device(duthost) and asic_type in SKIP_LIST and "warm" in reboot_type: reboot_case_supported = False From 882034c86d7519604c915b0993459b600bbf559e Mon Sep 17 00:00:00 2001 From: Vivek Kumar Verma Date: Wed, 28 May 2025 10:56:35 +0000 Subject: [PATCH 3/3] Change the if statment --- tests/snappi_tests/files/helper.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/snappi_tests/files/helper.py b/tests/snappi_tests/files/helper.py index 074d6aca030..bd7db336d77 100644 --- a/tests/snappi_tests/files/helper.py +++ b/tests/snappi_tests/files/helper.py @@ -36,7 +36,7 @@ def skip_warm_reboot(duthost, reboot_type): SKIP_LIST = ["td2", "jr2", "j2c+"] asic_type = duthost.get_asic_name() reboot_case_supported = True - if (reboot_type == "fast") and (asic_type == "jr2" or asic_type=="j2c+"): + if (reboot_type == "fast") and asic_type in ["jr2", "j2c+"]: reboot_case_supported = False elif (reboot_type == "warm" or reboot_type == "fast") and is_cisco_device(duthost): reboot_case_supported = False