Skip to content

Commit

Permalink
subaru: use TestSubaruSafetyBase
Browse files Browse the repository at this point in the history
  • Loading branch information
martinl committed Jul 19, 2023
1 parent 99a4e5b commit b7a5aa6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/safety/test_subaru.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ class TestSubaruGen2Safety(TestSubaruGen2SafetyBase):
FLAGS = Panda.FLAG_SUBARU_GEN2
TX_MSGS = lkas_tx_msgs(SUBARU_ALT_BUS)

class TestSubaruCrosstrekHybridSafety(TestSubaruSafety):
class TestSubaruCrosstrekHybridSafety(TestSubaruSafetyBase):
TX_MSGS = [[0x122, 0], [0x321, 0], [0x322, 0]]
FWD_BLACKLISTED_ADDRS = {2: [0x122, 0x321, 0x322]}

Expand All @@ -130,7 +130,7 @@ def _pcm_status_msg(self, enable):
values = {"Cruise_Activated": enable}
return self.packer.make_can_msg_panda("ES_DashStatus", 2, values)

class TestSubaruForesterHybridSafety(TestSubaruSafety):
class TestSubaruForesterHybridSafety(TestSubaruSafetyBase):

def setUp(self):
self.packer = CANPackerPanda("subaru_global_2017_generated")
Expand All @@ -142,7 +142,7 @@ def _pcm_status_msg(self, enable):
values = {"Cruise_Activated": enable}
return self.packer.make_can_msg_panda("ES_Status", 2, values)

class TestSubaruForester2022Safety(TestSubaruSafety):
class TestSubaruForester2022Safety(TestSubaruSafetyBase):
TX_MSGS = [[0x124, 0], [0x221, 0], [0x321, 0], [0x322, 0], [0x40, 2], [0x139, 2]]
RELAY_MALFUNCTION_ADDR = 0x124
FWD_BLACKLISTED_ADDRS = {0: [0x40, 0x139], 2: [0x124, 0x321, 0x322]}
Expand Down

0 comments on commit b7a5aa6

Please sign in to comment.