Pytest: tici mark for skipping on-device tests (#30412)

* mark tici

* not those ones

* missed that one

* add those

* add pypoetry

* oops
This commit is contained in:
Justin Newberry
2023-11-07 20:35:44 -05:00
committed by GitHub
parent c419376bbd
commit aec7cea30d
19 changed files with 45 additions and 49 deletions
+8
View File
@@ -2,6 +2,7 @@ import os
import pytest
from openpilot.common.prefix import OpenpilotPrefix
from openpilot.system.hardware import TICI
@pytest.fixture(scope="function", autouse=True)
@@ -31,3 +32,10 @@ def openpilot_class_fixture():
os.environ.clear()
os.environ.update(starting_env)
def pytest_collection_modifyitems(config, items):
skipper = pytest.mark.skip(reason="Skipping tici test on PC")
for item in items:
if not TICI and "tici" in item.keywords:
item.add_marker(skipper)