Skip to content
Merged
Show file tree
Hide file tree
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
2 changes: 1 addition & 1 deletion tests/common/platform/device_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ def fanout_switch_port_lookup(fanout_switches, dut_name, dut_port):
def get_dut_psu_line_pattern(dut):
if "201811" in dut.os_version or "201911" in dut.os_version:
psu_line_pattern = re.compile(r"PSU\s+(\d)+\s+(OK|NOT OK|NOT PRESENT)")
elif dut.facts['platform'] == "x86_64-dellemc_z9332f_d1508-r0" or dut.facts['asic_type'] == "cisco-8000":
elif dut.facts['platform'] == "x86_64-dellemc_z9332f_d1508-r0":
psu_line_pattern = re.compile(r"PSU\s+(\d+).*?(OK|NOT OK|NOT PRESENT|WARNING)\s+(N/A)")
else:
"""
Expand Down
2 changes: 1 addition & 1 deletion tests/platform_tests/cli/test_show_platform.py
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ def test_show_platform_psustatus_json(duthosts, enum_supervisor_dut_hostname):
psu_info_list = json.loads(psu_status_output)

# TODO: Compare against expected platform-specific output
if duthost.facts["platform"] == "x86_64-dellemc_z9332f_d1508-r0" or duthost.facts['asic_type'] == "cisco-8000":
if duthost.facts["platform"] == "x86_64-dellemc_z9332f_d1508-r0":
led_status_list = ["N/A"]
else:
led_status_list = ["green", "amber", "red", "off"]
Expand Down