add hardware init to sensor tests

pull/25773/head
Kurt Nistelberger 3 years ago
parent c64230c4a8
commit 467bbffa0f
  1. 5
      selfdrive/sensord/tests/test_sensord.py

@ -8,7 +8,7 @@ from smbus2 import SMBus
import cereal.messaging as messaging import cereal.messaging as messaging
from cereal import log from cereal import log
from system.hardware import TICI from system.hardware import TICI, HARDWARE
from selfdrive.test.helpers import with_processes from selfdrive.test.helpers import with_processes
from selfdrive.manager.process_config import managed_processes from selfdrive.manager.process_config import managed_processes
@ -113,6 +113,9 @@ class TestSensord(unittest.TestCase):
if not TICI: if not TICI:
raise unittest.SkipTest raise unittest.SkipTest
# make sure gpiochip0 is readable
HARDWARE.initialize_hardware()
@with_processes(['sensord']) @with_processes(['sensord'])
def test_sensors_present(self): def test_sensors_present(self):
# verify correct sensors configuration # verify correct sensors configuration

Loading…
Cancel
Save