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
3 changes: 1 addition & 2 deletions tests/platform_tests/mellanox/test_thermal_control.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,8 +129,7 @@ def get_psu_speed(dut, index):
index = index + 1
psu_speed_path = PSU_SPEED_PATH.format(index)
file_stat = dut.stat(path=psu_speed_path)
if not file_stat["stat"]["exists"]:
return None
assert file_stat["stat"]["exists"], 'Failed to get PSU speed file due to {} does not exist'.format(psu_speed_path)

cmd_output = dut.command('cat {}'.format(psu_speed_path))
try:
Expand Down