mirror of
https://github.com/MoreTore/openpilot.git
synced 2026-08-05 00:05:59 +08:00
Chrysler: add FW tests (#25599)
* stash
* make sure no transmission FW is added for HD trucks
* Remove
* consistency
old-commit-hash: 19e088de0a
This commit is contained in:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user