test_onroad: tizi updates (#28379)

* test_onroad: add tizi support

* don't clear params on desk device

* update

* fix mypy

---------

Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: 80d8dcd22e
beeps
Adeeb Shihadeh 2 years ago committed by GitHub
parent 4de14c1130
commit 4174ac224d
  1. 20
      selfdrive/test/test_onroad.py

@ -18,6 +18,7 @@ from common.basedir import BASEDIR
from common.timeout import Timeout from common.timeout import Timeout
from common.params import Params from common.params import Params
from selfdrive.controls.lib.events import EVENTS, ET from selfdrive.controls.lib.events import EVENTS, ET
from system.hardware import HARDWARE
from system.loggerd.config import ROOT from system.loggerd.config import ROOT
from selfdrive.test.helpers import set_params_enabled, release_only from selfdrive.test.helpers import set_params_enabled, release_only
from tools.lib.logreader import LogReader from tools.lib.logreader import LogReader
@ -35,7 +36,6 @@ PROCS = {
"./_sensord": 12.0, "./_sensord": 12.0,
"selfdrive.controls.radard": 4.5, "selfdrive.controls.radard": 4.5,
"./_modeld": 4.48, "./_modeld": 4.48,
"./boardd": 3.63,
"./_dmonitoringmodeld": 5.0, "./_dmonitoringmodeld": 5.0,
"selfdrive.thermald.thermald": 3.87, "selfdrive.thermald.thermald": 3.87,
"selfdrive.locationd.calibrationd": 2.0, "selfdrive.locationd.calibrationd": 2.0,
@ -45,12 +45,10 @@ PROCS = {
"./proclogd": 1.54, "./proclogd": 1.54,
"system.logmessaged": 0.2, "system.logmessaged": 0.2,
"./clocksd": 0.02, "./clocksd": 0.02,
"./ubloxd": 0.02,
"selfdrive.tombstoned": 0, "selfdrive.tombstoned": 0,
"./logcatd": 0, "./logcatd": 0,
"system.micd": 10.0, "system.micd": 10.0,
"system.timezoned": 0, "system.timezoned": 0,
"system.sensord.pigeond": 6.0,
"selfdrive.boardd.pandad": 0, "selfdrive.boardd.pandad": 0,
"selfdrive.statsd": 0.4, "selfdrive.statsd": 0.4,
"selfdrive.navd.navd": 0.4, "selfdrive.navd.navd": 0.4,
@ -59,6 +57,18 @@ PROCS = {
"selfdrive.locationd.laikad": None, # TODO: laikad cpu usage is sporadic "selfdrive.locationd.laikad": None, # TODO: laikad cpu usage is sporadic
} }
PROCS.update({
"tici": {
"./boardd": 4.0,
"./ubloxd": 0.02,
"system.sensord.pigeond": 6.0,
},
"tizi": {
"./boardd": 19.0,
"system.sensord.rawgps.rawgpsd": 1.0,
}
}[HARDWARE.get_device_type()])
TIMINGS = { TIMINGS = {
# rtols: max/min, rsd # rtols: max/min, rsd
"can": [2.5, 0.35], "can": [2.5, 0.35],
@ -96,7 +106,9 @@ class TestOnroad(unittest.TestCase):
# setup env # setup env
params = Params() params = Params()
if "CI" in os.environ:
params.clear_all() params.clear_all()
params.remove("CurrentRoute")
set_params_enabled() set_params_enabled()
os.environ['TESTING_CLOSET'] = '1' os.environ['TESTING_CLOSET'] = '1'
if os.path.exists(ROOT): if os.path.exists(ROOT):
@ -158,7 +170,7 @@ class TestOnroad(unittest.TestCase):
continue continue
# skip gps services for now # skip gps services for now
if s in ('ubloxGnss', 'ubloxRaw', 'gnssMeasurements', 'gpsLocationExternal'): if s in ('ubloxGnss', 'ubloxRaw', 'gnssMeasurements', 'gpsLocation', 'gpsLocationExternal', 'qcomGnss'):
continue continue
with self.subTest(service=s): with self.subTest(service=s):

Loading…
Cancel
Save