test_onroad: ignore vehicleModelInvalid (#28335)

* test_onroad: ignore vehicleModelInvalid

* not for all ci
old-commit-hash: cd57b340c1
This commit is contained in:
Adeeb Shihadeh 2023-06-01 10:26:08 -07:00 committed by GitHub
parent c0883bcabe
commit 7e64d60f4b
2 changed files with 3 additions and 1 deletions

View File

@ -34,6 +34,7 @@ LANE_DEPARTURE_THRESHOLD = 0.1
REPLAY = "REPLAY" in os.environ
SIMULATION = "SIMULATION" in os.environ
TESTING_CLOSET = "TESTING_CLOSET" in os.environ
NOSENSOR = "NOSENSOR" in os.environ
IGNORE_PROCESSES = {"loggerd", "encoderd", "statsd"}
@ -373,7 +374,7 @@ class Controls:
else:
self.logged_comm_issue = None
if not self.sm['liveParameters'].valid:
if not self.sm['liveParameters'].valid and not TESTING_CLOSET:
self.events.add(EventName.vehicleModelInvalid)
if not self.sm['lateralPlan'].mpcSolutionValid:
self.events.add(EventName.plannerError)

View File

@ -98,6 +98,7 @@ class TestOnroad(unittest.TestCase):
params = Params()
params.clear_all()
set_params_enabled()
os.environ['TESTING_CLOSET'] = '1'
if os.path.exists(ROOT):
shutil.rmtree(ROOT)