Skip to content

Commit 59d705c

Browse files
ppikhsaravanansv
authored andcommitted
[platform] fixed undefined variable in test test_platform_info.py (sonic-net#3410)
What is the motivation for this PR? Fix for NameError: global name 'duthost' is not defined How did you verify/test it? executed tests from file 'platform_tests/test_platform_info.py'
1 parent b5dc935 commit 59d705c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tests/platform_tests/test_platform_info.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -418,7 +418,7 @@ def turn_off_outlet_and_check_thermal_control(dut, pdu_ctrl, outlet, mocker):
418418
time.sleep(5)
419419

420420
psu_under_test = None
421-
psu_line_pattern = get_dut_psu_line_pattern(duthost)
421+
psu_line_pattern = get_dut_psu_line_pattern(dut)
422422
cli_psu_status = dut.command(CMD_PLATFORM_PSUSTATUS)
423423
for line in cli_psu_status["stdout_lines"][2:]:
424424
psu_match = psu_line_pattern.match(line)

0 commit comments

Comments
 (0)