add hardware init to sensor tests

old-commit-hash: 467bbffa0fe50587eb8fb8d98cfe2df93461ef1d
This commit is contained in:
Kurt Nistelberger
2022-09-13 16:45:12 -07:00
parent c3d7152d38
commit 94e586ccf7
+4 -1
View File
@@ -8,7 +8,7 @@ from smbus2 import SMBus
import cereal.messaging as messaging
from cereal import log
from system.hardware import TICI
from system.hardware import TICI, HARDWARE
from selfdrive.test.helpers import with_processes
from selfdrive.manager.process_config import managed_processes
@@ -113,6 +113,9 @@ class TestSensord(unittest.TestCase):
if not TICI:
raise unittest.SkipTest
# make sure gpiochip0 is readable
HARDWARE.initialize_hardware()
@with_processes(['sensord'])
def test_sensors_present(self):
# verify correct sensors configuration