From 0525041f1caace3eea18408055c21a4974890af6 Mon Sep 17 00:00:00 2001 From: Shane Smiskol Date: Tue, 14 Nov 2023 14:14:11 -0800 Subject: [PATCH] PR comments --- .github/workflows/selfdrive_tests.yaml | 2 +- selfdrive/car/tests/routes.py | 5 +++++ selfdrive/car/tests/test_models.py | 5 +++++ 3 files changed, 11 insertions(+), 1 deletion(-) diff --git a/.github/workflows/selfdrive_tests.yaml b/.github/workflows/selfdrive_tests.yaml index 4e622f68a5..77fddb7099 100644 --- a/.github/workflows/selfdrive_tests.yaml +++ b/.github/workflows/selfdrive_tests.yaml @@ -320,7 +320,7 @@ jobs: car_docs_diff: name: PR comments runs-on: ubuntu-20.04 - if: github.event_name == 'pull_request' + if: github.event_name == 'never' steps: - uses: actions/checkout@v4 with: diff --git a/selfdrive/car/tests/routes.py b/selfdrive/car/tests/routes.py index dc9fa32b97..4136515702 100755 --- a/selfdrive/car/tests/routes.py +++ b/selfdrive/car/tests/routes.py @@ -179,6 +179,11 @@ routes = [ CarTestRoute("3456ad0cd7281b24|2020-12-13--17-45-56", TOYOTA.CAMRY_TSS2), CarTestRoute("ffccc77938ddbc44|2021-01-04--16-55-41", TOYOTA.CAMRY_TSS2), # hybrid CarTestRoute("4e45c89c38e8ec4d|2021-05-02--02-49-28", TOYOTA.COROLLA), + CarTestRoute("5f5afb36036506e4|2019-05-14--02-09-54", TOYOTA.COROLLA), + CarTestRoute("5f5afb36036506e4|2019-05-14--02-09-54", TOYOTA.COROLLA), + CarTestRoute("5f5afb36036506e4|2019-05-14--02-09-54", TOYOTA.COROLLA), + CarTestRoute("5f5afb36036506e4|2019-05-14--02-09-54", TOYOTA.COROLLA), + CarTestRoute("5f5afb36036506e4|2019-05-14--02-09-54", TOYOTA.COROLLA), CarTestRoute("5f5afb36036506e4|2019-05-14--02-09-54", TOYOTA.COROLLA_TSS2), CarTestRoute("5ceff72287a5c86c|2019-10-19--10-59-02", TOYOTA.COROLLA_TSS2), # hybrid CarTestRoute("d2525c22173da58b|2021-04-25--16-47-04", TOYOTA.PRIUS), diff --git a/selfdrive/car/tests/test_models.py b/selfdrive/car/tests/test_models.py index 4e8af3324c..ec175075e3 100755 --- a/selfdrive/car/tests/test_models.py +++ b/selfdrive/car/tests/test_models.py @@ -274,10 +274,15 @@ class TestCarModelBase(unittest.TestCase): can = messaging.new_message('can', 1) can.can = [log.CanData(address=address, dat=dat, src=bus)] + # del can.can[0] + # del can.can print('rxing', dict(address=address, dat=dat, src=bus)) + # continue CC = car.CarControl.new_message() CS = self.CI.update(CC, (can.to_bytes(),)) + # del can + # del CC # continue # test multiple CAN packets as well as multiple messages per CAN packet