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
+2 -4
View File
@@ -1,4 +1,5 @@
#!/usr/bin/env python3
import pytest
import time
import unittest
import struct
@@ -6,7 +7,6 @@ import struct
from openpilot.common.params import Params
import cereal.messaging as messaging
import openpilot.system.sensord.pigeond as pd
from openpilot.system.hardware import TICI
from openpilot.selfdrive.test.helpers import with_processes
@@ -107,12 +107,10 @@ def verify_time_to_first_fix(pigeon):
assert ttff < 40, f"Time to first fix > 40s, {ttff}"
@pytest.mark.tici
class TestGPS(unittest.TestCase):
@classmethod
def setUpClass(cls):
if not TICI:
raise unittest.SkipTest
ublox_available = Params().get_bool("UbloxAvailable")
if not ublox_available:
raise unittest.SkipTest
+2 -4
View File
@@ -1,10 +1,10 @@
#!/usr/bin/env python3
import pytest
import time
import unittest
import subprocess as sp
from openpilot.common.params import Params
from openpilot.system.hardware import TICI
import cereal.messaging as messaging
from openpilot.selfdrive.manager.process_config import managed_processes
@@ -30,12 +30,10 @@ def wait_for_location(socket, timeout):
continue
@pytest.mark.tici
class TestGPS(unittest.TestCase):
@classmethod
def setUpClass(cls):
if not TICI:
raise unittest.SkipTest
ublox_available = Params().get_bool("UbloxAvailable")
if ublox_available:
raise unittest.SkipTest