diff --git a/pyproject.toml b/pyproject.toml index 3794aa2dec..933af61afd 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,3 +1,9 @@ +[tool.pytest.ini_options] +minversion = "6.0" +addopts = "--ignore=panda/ --ignore=rednose_repo/ --ignore=tinygrad_repo/ --ignore=laika_repo/" +python_files = "test_*.py" +timeout = "30" # you get this long by default + [tool.poetry] name = "openpilot" version = "0.1.0" diff --git a/selfdrive/test/test_onroad.py b/selfdrive/test/test_onroad.py index e6c3658a18..ad56b1fa2c 100755 --- a/selfdrive/test/test_onroad.py +++ b/selfdrive/test/test_onroad.py @@ -69,7 +69,7 @@ PROCS.update({ "./boardd": 19.0, "system.sensord.rawgps.rawgpsd": 1.0, } -}[HARDWARE.get_device_type()]) +}.get(HARDWARE.get_device_type(), {})) TIMINGS = { # rtols: max/min, rsd diff --git a/system/camerad/test/test_exposure.py b/system/camerad/test/test_exposure.py index 201b205c4f..979272d024 100755 --- a/system/camerad/test/test_exposure.py +++ b/system/camerad/test/test_exposure.py @@ -3,7 +3,7 @@ import time import unittest import numpy as np -from selfdrive.test.helpers import with_processes +from selfdrive.test.helpers import with_processes, phone_only from system.camerad.snapshot.snapshot import get_snapshots TEST_TIME = 45 @@ -28,6 +28,7 @@ class TestCamerad(unittest.TestCase): print([i_median, i_mean]) return med_ex[0] < i_median < med_ex[1] and mean_ex[0] < i_mean < mean_ex[1] + @phone_only @with_processes(['camerad']) def test_camera_operation(self): passed = 0