debug test_models script fixes (#32362)

* some things were renamed without checking

* fix that
This commit is contained in:
Shane Smiskol
2024-05-06 15:01:06 -07:00
committed by GitHub
parent c05fc4872e
commit e5107b1eab
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -94,7 +94,7 @@ class TestCarModelBase(unittest.TestCase):
car_fw = msg.carParams.carFw
if msg.carParams.openpilotLongitudinalControl:
experimental_long = True
if cls.platform is None and not cls.ci:
if cls.platform is None and not cls.test_route_on_bucket:
live_fingerprint = msg.carParams.carFingerprint
cls.platform = MIGRATION.get(live_fingerprint, live_fingerprint)
+1 -1
View File
@@ -12,7 +12,7 @@ def create_test_models_suite(routes: list[CarTestRoute], ci=False) -> unittest.T
test_suite = unittest.TestSuite()
for test_route in routes:
# create new test case and discover tests
test_case_args = {"car_model": test_route.car_model, "test_route": test_route, "ci": ci}
test_case_args = {"platform": test_route.car_model, "test_route": test_route, "test_route_on_bucket": ci}
CarModelTestCase = type("CarModelTestCase", (TestCarModel,), test_case_args)
test_suite.addTest(unittest.TestLoader().loadTestsFromTestCase(CarModelTestCase))
return test_suite