comment up+

pull/26939/head
Shane Smiskol 2 years ago
parent 6c8f0dd454
commit 3c198d93a5
  1. 5
      selfdrive/car/hyundai/tests/test_hyundai.py

@ -35,13 +35,12 @@ class TestHyundaiFingerprint(unittest.TestCase):
self.assertIn(fuzzy_ecu, [e[0] for e in ecus])
def test_consistent_fw_dates(self):
# Asserts firmware dates are consistent across the platform
# Some newer CAN FD platforms have date codes in a different format we don't yet parse,
# for now assert date format is consistent across each platform
for car_model, ecus in FW_VERSIONS.items():
with self.subTest(car_model=car_model):
for ecu, fws in ecus.items():
if ecu[0] in FW_QUERY_CONFIG.fuzzy_ecus:
# some newer CAN FD platforms have date codes in a different format we don't yet parse,
# for now assert date format is consistent across the platform
# TODO: use FW_QUERY_CONFIG.fuzzy_get_platform_codes
has_date = {PLATFORM_CODE_PATTERN.search(fw).groups(1) is None for fw in fws}
self.assertEqual(len(has_date), 1)

Loading…
Cancel
Save