mirror of https://github.com/commaai/openpilot.git
test_onroad: ignore vehicleModelInvalid (#28335)
* test_onroad: ignore vehicleModelInvalid
* not for all ci
old-commit-hash: cd57b340c1
This commit is contained in:
parent
c0883bcabe
commit
7e64d60f4b
|
@ -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)
|
||||
|
|
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in New Issue