pytest: fix tici setup fixture (#31379)

cleanup

Co-authored-by: Comma Device <device@comma.ai>
pull/31378/head
Justin Newberry 1 year ago committed by GitHub
parent e593ffc28c
commit 88d0231095
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 7
      conftest.py

@ -63,13 +63,12 @@ def openpilot_class_fixture():
os.environ.update(starting_env) os.environ.update(starting_env)
@pytest.fixture(scope="class") @pytest.fixture(scope="function")
def tici_setup_fixture(): def tici_setup_fixture(openpilot_function_fixture):
"""Ensure a consistent state for tests on-device""" """Ensure a consistent state for tests on-device. Needs the openpilot function fixture to run first."""
HARDWARE.initialize_hardware() HARDWARE.initialize_hardware()
HARDWARE.set_power_save(False) HARDWARE.set_power_save(False)
os.system("pkill -9 -f athena") os.system("pkill -9 -f athena")
os.system("rm /dev/shm/*")
@pytest.hookimpl(tryfirst=True) @pytest.hookimpl(tryfirst=True)

Loading…
Cancel
Save