Skip to content

Commit

Permalink
rename gen3 to forester2022
Browse files Browse the repository at this point in the history
  • Loading branch information
jnewb1 committed Jul 18, 2023
1 parent e6e1b33 commit e959fc8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tests/safety/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -929,7 +929,7 @@ def test_tx_hook_on_wrong_safety_mode(self):
if attr.startswith('TestHonda'):
# exceptions for common msgs across different hondas
tx = list(filter(lambda m: m[0] not in [0x1FA, 0x30C, 0x33D], tx))
if attr in ['TestSubaruGen1Safety', 'TestSubaruGen2Safety', 'TestSubaruGen3Safety']:
if attr in ['TestSubaruGen1Safety', 'TestSubaruGen2Safety', 'TestSubaruForester2022Safety']:
# exceptions for common msgs across different subarus
tx = list(filter(lambda m: m[0] not in [0x122, 0x221, 0x321, 0x322, 0x323], tx))
all_tx.append(list([m[0], m[1], attr] for m in tx))
Expand Down
2 changes: 1 addition & 1 deletion 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 TestSubaruGen3Safety(TestSubaruSafetyBase):
class TestSubaruForester2022Safety(TestSubaruSafetyBase):
TX_MSGS = lkas_tx_msgs(SUBARU_MAIN_BUS, MSG_SUBARU_ES_LKAS_ALT)
RELAY_MALFUNCTION_ADDR = MSG_SUBARU_ES_LKAS_ALT
FWD_BLACKLISTED_ADDRS = fwd_blacklisted_addr(MSG_SUBARU_ES_LKAS_ALT)
Expand Down

0 comments on commit e959fc8

Please sign in to comment.