Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions tests/show_techsupport/test_techsupport.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ def skip_on_dpu(duthosts, enum_rand_one_per_hwsku_frontend_hostname):
When dut is dpu, skip the case
"""
duthost = duthosts[enum_rand_one_per_hwsku_frontend_hostname]
if duthost.get_facts().get('is_dpu'):
if duthost.dut_basic_facts()['ansible_facts']['dut_basic_facts'].get("is_dpu"):
pytest.skip("Skip the test, as it is not supported on DPU.")


Expand Down Expand Up @@ -620,7 +620,7 @@ def test_techsupport_on_dpu(duthosts, enum_rand_one_per_hwsku_frontend_hostname)
:param duthosts: DUT host
"""
duthost = duthosts[enum_rand_one_per_hwsku_frontend_hostname]
if not duthost.get_facts().get('is_dpu'):
if not duthost.dut_basic_facts()['ansible_facts']['dut_basic_facts'].get("is_dpu"):
pytest.skip("Skip the test, as it is supported only on DPU.")

since = str(randint(1, 5)) + " minute ago"
Expand Down
Loading