Chrysler: add FW tests (#25599)

* stash

* make sure no transmission FW is added for HD trucks

* Remove

* consistency
pull/25605/head
Shane Smiskol 3 years ago committed by GitHub
parent 6334980949
commit 19e088de0a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 6
      selfdrive/car/tests/test_fw_fingerprint.py

@ -53,6 +53,12 @@ class TestFwFingerprint(unittest.TestCase):
for ecu in ecus.keys():
self.assertNotIn(ecu[1], blacklisted_addrs, f'{car_model}: Blacklisted ecu: (Ecu.{ECU_NAME[ecu[0]]}, {hex(ecu[1])})')
elif CP.carName == "chrysler":
# Some HD trucks have a combined TCM and ECM
if CP.carFingerprint.startswith("RAM HD"):
for ecu in ecus.keys():
self.assertNotEqual(ecu[0], Ecu.transmission, f"{car_model}: Blacklisted ecu: (Ecu.{ECU_NAME[ecu[0]]}, {hex(ecu[1])})")
def test_fw_request_ecu_whitelist(self):
for brand in set(r.brand for r in REQUESTS):
with self.subTest(brand=brand):

Loading…
Cancel
Save