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

* mark tici

* not those ones

* missed that one

* add those

* add pypoetry

* oops
old-commit-hash: aec7cea30d48dc8915eea38c86de7d4effa0548d
This commit is contained in:
Justin Newberry
2023-11-07 20:35:44 -05:00
committed by GitHub
parent 7bd8c5425b
commit 3027a428cb
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)