From e959fc808d61860cd34c58e24e863157224853ca Mon Sep 17 00:00:00 2001 From: Justin Newberry Date: Tue, 18 Jul 2023 14:27:51 -0700 Subject: [PATCH] rename gen3 to forester2022 --- tests/safety/common.py | 2 +- tests/safety/test_subaru.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/safety/common.py b/tests/safety/common.py index b2c1ac71fa..16edb41bf5 100644 --- a/tests/safety/common.py +++ b/tests/safety/common.py @@ -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)) diff --git a/tests/safety/test_subaru.py b/tests/safety/test_subaru.py index efb1850ac3..b583caefa6 100755 --- a/tests/safety/test_subaru.py +++ b/tests/safety/test_subaru.py @@ -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)