Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[test_power_off_reboot.py] add missing fixture #8896

Merged
merged 4 commits into from
Jul 11, 2023
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
5 changes: 2 additions & 3 deletions tests/platform_tests/test_power_off_reboot.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
import pytest
import time

from tests.common.fixtures.conn_graph_facts import conn_graph_facts # noqa F401
from tests.common.reboot import wait_for_startup, REBOOT_TYPE_POWEROFF
from tests.common.platform.processes_utils import wait_critical_processes, check_critical_processes
from tests.common.helpers.assertions import pytest_assert
Expand Down Expand Up @@ -31,7 +30,7 @@ def set_max_time_for_interfaces(duthost):


@pytest.fixture(scope="module", autouse=True)
def teardown_module(duthosts, enum_supervisor_dut_hostname, xcvr_skip_list):
def teardown_module(duthosts, enum_supervisor_dut_hostname, conn_graph_facts, xcvr_skip_list):
duthost = duthosts[enum_supervisor_dut_hostname]
yield

Expand Down Expand Up @@ -61,7 +60,7 @@ def _power_off_reboot_helper(kwargs):
pdu_ctrl.turn_on_outlet(outlet)


def test_power_off_reboot(duthosts, localhost, enum_supervisor_dut_hostname,
def test_power_off_reboot(duthosts, localhost, enum_supervisor_dut_hostname, conn_graph_facts,
set_max_time_for_interfaces, xcvr_skip_list, pdu_controller, power_off_delay):
"""
@summary: This test case is to perform reboot via powercycle and check platform status
Expand Down