diff --git a/tests/qos/test_qos_dscp_mapping.py b/tests/qos/test_qos_dscp_mapping.py index 3def8da01e0..8c732ee1526 100644 --- a/tests/qos/test_qos_dscp_mapping.py +++ b/tests/qos/test_qos_dscp_mapping.py @@ -500,8 +500,14 @@ def test_dscp_to_queue_mapping(self, ptfadapter, rand_selected_dut, localhost, d with allure.step("Run test"): self._run_test(ptfadapter, duthost, tbinfo, test_params, inner_dst_ip_list, dut_qos_maps_module, dscp_mode) - if completeness_level != "basic" and \ - not duthost.dut_basic_facts()['ansible_facts']['dut_basic_facts'].get("is_smartswitch"): + is_smartswitch = duthost.dut_basic_facts()['ansible_facts']['dut_basic_facts'].get("is_smartswitch", False) + topo_name = tbinfo["topo"]["name"] + if ( + completeness_level != "basic" + and not is_smartswitch + and "dualtor" not in topo_name + and "t1" not in topo_name + ): with allure.step("Do warm-reboot"): reboot(duthost, localhost, reboot_type="warm", safe_reboot=True, check_intf_up_ports=True, wait_warmboot_finalizer=True)