run common long test

This commit is contained in:
Shane Smiskol 2023-10-03 23:54:55 -07:00
parent 0ca5ad773f
commit 2a9aa9f691
1 changed files with 4 additions and 1 deletions

View File

@ -384,7 +384,7 @@ class TestFordCANFDStockSafety(TestFordSafetyBase):
self.safety.init_tests()
class TestFordLongitudinalSafetyBase(TestFordSafetyBase):
class TestFordLongitudinalSafetyBase(TestFordSafetyBase, common.LongitudinalAccelSafetyTest):
FWD_BLACKLISTED_ADDRS = {2: [MSG_ACCDATA, MSG_ACCDATA_3, MSG_Lane_Assist_Data1, MSG_LateralMotionControl,
MSG_LateralMotionControl2, MSG_IPMA_Data]}
@ -410,6 +410,9 @@ class TestFordLongitudinalSafetyBase(TestFordSafetyBase):
}
return self.packer.make_can_msg_panda("ACCDATA", 0, values)
def _accel_msg(self, accel: float):
return self._acc_command_msg(self.INACTIVE_GAS, accel)
def test_stock_aeb(self):
# Test that CmbbDeny_B_Actl is never 1, it prevents the ABS module from actuating AEB requests from ACCDATA_2
for controls_allowed in (True, False):