remove
ez-test-models
Shane Smiskol 2022-03-18 22:41:50 -07:00
parent 7650397803
commit a4d572ed88
1 changed files with 1 additions and 6 deletions

View File

@ -62,7 +62,6 @@ class TestCarModel(unittest.TestCase):
lr = LogReader(get_url(cls.route, seg))
else:
lr = LogReader(Route(cls.route).log_paths()[seg])
except Exception:
continue
@ -75,11 +74,6 @@ class TestCarModel(unittest.TestCase):
fingerprint[m.src][m.address] = len(m.dat)
can_msgs.append(msg)
elif msg.which() == "carParams":
# TODO: do we want to require specifying car model?
# if not cls.ci:
# if cls.car_model is None:
# cls.car_model = msg.carParams.carFingerprint
# print(f"Inferring carFingerprint: {cls.car_model}")
if msg.carParams.openpilotLongitudinalControl:
disable_radar = True
@ -280,6 +274,7 @@ if __name__ == "__main__":
# Run on user-specified route
if args.route is not None:
# TODO: do we want to require specifying car model?
assert args.car_model is not None, "Car model needed for tests"
test_route = TestRoute(args.route, args.car_model, ci=False)
test_cases = load_tests([test_route])