|
|
@ -243,10 +243,8 @@ class TestCarModelBase(unittest.TestCase): |
|
|
|
if self.safety.safety_rx_hook(to_send) != 1: |
|
|
|
if self.safety.safety_rx_hook(to_send) != 1: |
|
|
|
failed_addrs[hex(msg.address)] += 1 |
|
|
|
failed_addrs[hex(msg.address)] += 1 |
|
|
|
|
|
|
|
|
|
|
|
if self.CP.brand in ("gm", "mazda", "rivian", "tesla"): |
|
|
|
if self.CP.brand not in ("gm", "mazda", "rivian", "tesla"): |
|
|
|
self.assertTrue(self.safety.get_ignition_can()) |
|
|
|
self.assertFalse(self.safety.get_ignition_can()) |
|
|
|
else: |
|
|
|
|
|
|
|
self.assertFalse(self.safety.get_ignition_can()) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# ensure all msgs defined in the addr checks are valid |
|
|
|
# ensure all msgs defined in the addr checks are valid |
|
|
|
self.safety.safety_tick_current_safety_config() |
|
|
|
self.safety.safety_tick_current_safety_config() |
|
|
|