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/snmp/test_snmp_phy_entity.py
Original file line number Diff line number Diff line change
Expand Up @@ -619,7 +619,7 @@ def _get_transceiver_sensor_data(duthost, name):


@pytest.mark.disable_loganalyzer
def test_turn_off_psu_and_check_psu_info(duthosts, enum_rand_one_per_hwsku_hostname,
def test_turn_off_psu_and_check_psu_info(duthosts, enum_supervisor_dut_hostname,
localhost, creds_all_duts,
pdu_controller):
"""
Expand All @@ -630,7 +630,7 @@ def test_turn_off_psu_and_check_psu_info(duthosts, enum_rand_one_per_hwsku_hostn
:param pdu_controller: PDU controller
:return:
"""
duthost = duthosts[enum_rand_one_per_hwsku_hostname]
duthost = duthosts[enum_supervisor_dut_hostname]
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The change seems ok.
Shouldn't skip handle this scenario, why do we need to run only on supervisor?

Copy link
Copy Markdown
Contributor Author

@wenyiz2021 wenyiz2021 Jun 21, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

old behavior should also be fine.
old:
for chassis it choose sup and cards, but cards were skipped
new:
for chassis it choose sup only

the only pros is we can avoid some skipped tests in pipeline result.

if not pdu_controller:
pytest.skip('psu_controller is None, skipping this test')
outlet_status = pdu_controller.get_outlet_status()
Expand Down