FW Query: test noOBD queries on aux panda (#29547)

* huh, this test just works!

* fix

* Update selfdrive/car/tests/test_fw_fingerprint.py
old-commit-hash: 7de9842245dfb506ec340290469d7412989e2233
This commit is contained in:
Shane Smiskol
2023-08-22 23:43:52 -07:00
committed by GitHub
parent 3527b47f6d
commit 4699eed8f3
2 changed files with 5 additions and 2 deletions
-1
View File
@@ -108,7 +108,6 @@ FW_QUERY_CONFIG = FwQueryConfig(
[StdQueries.TESTER_PRESENT_REQUEST, StdQueries.MANUFACTURER_SOFTWARE_VERSION_REQUEST],
[StdQueries.TESTER_PRESENT_RESPONSE, StdQueries.MANUFACTURER_SOFTWARE_VERSION_RESPONSE],
# whitelist_ecus=[Ecu.engine],
auxiliary=True,
),
Request(
[StdQueries.TESTER_PRESENT_REQUEST, StdQueries.MANUFACTURER_SOFTWARE_VERSION_REQUEST],
+5 -1
View File
@@ -168,6 +168,10 @@ class TestFwFingerprint(unittest.TestCase):
for request_obj in config.requests:
self.assertEqual(len(request_obj.request), len(request_obj.response))
# No request on the OBD port (bus 1, multiplexed) should be run on an aux panda
self.assertFalse(request_obj.auxiliary and request_obj.bus == 1 and request_obj.obd_multiplexing,
f"{brand.title()}: OBD multiplexed request is marked auxiliary: {request_obj}")
class TestFwFingerprintTiming(unittest.TestCase):
N: int = 5
@@ -237,7 +241,7 @@ class TestFwFingerprintTiming(unittest.TestCase):
'volkswagen': 0.2,
},
2: {
'ford': 0.4,
'ford': 0.3,
'hyundai': 1.1,
}
}