diff --git a/tests/qos/qos_sai_base.py b/tests/qos/qos_sai_base.py index 4054fe4fde8..6663fffe4af 100644 --- a/tests/qos/qos_sai_base.py +++ b/tests/qos/qos_sai_base.py @@ -2202,7 +2202,7 @@ def skip_src_dst_different_asic(self, dutConfig): @pytest.fixture(scope="function", autouse=False) def skip_pacific_dst_asic(self, dutConfig): - if dutConfig['dstDutAsic'] == "pac": + if dutConfig.get('dstDutAsic', 'UnknownDstDutAsic') == "pac": pytest.skip( "This test is skipped since egress asic is cisco-8000 Q100.") yield diff --git a/tests/qos/test_qos_sai.py b/tests/qos/test_qos_sai.py index 4f16f540365..370e9af37e9 100644 --- a/tests/qos/test_qos_sai.py +++ b/tests/qos/test_qos_sai.py @@ -1578,7 +1578,7 @@ def testQosSaiPgSharedWatermark( if "wm_pg_shared_lossless" in pgProfile: pktsNumFillShared = qosConfig[pgProfile]["pkts_num_trig_pfc"] elif "wm_pg_shared_lossy" in pgProfile: - if dutConfig['dstDutAsic'] == "pac": + if dutConfig.get('dstDutAsic', 'UnknownDstDutAsic') == "pac": pytest.skip( "PGSharedWatermark: Lossy test is not applicable in " "cisco-8000 Q100 platform.")