mirror of
https://github.com/sunnypilot/sunnypilot.git
synced 2026-02-18 18:53:55 +08:00
handle missing routes better in test car models
This commit is contained in:
4
.github/workflows/selfdrive_tests.yaml
vendored
4
.github/workflows/selfdrive_tests.yaml
vendored
@@ -309,8 +309,6 @@ jobs:
|
||||
- name: Test car models
|
||||
run: |
|
||||
${{ env.RUN }} "scons -j$(nproc) && \
|
||||
FILEREADER_CACHE=1 coverage run --parallel-mode -m nose --processes=4 --process-timeout=120 \
|
||||
selfdrive/test/test_models.py && \
|
||||
coverage combine"
|
||||
coverage run selfdrive/test/test_models.py"
|
||||
- name: Upload coverage to Codecov
|
||||
run: bash <(curl -s https://codecov.io/bash) -v -F test_car_models
|
||||
|
||||
@@ -52,8 +52,10 @@ class TestCarModel(unittest.TestCase):
|
||||
lr = LogReader(get_url(ROUTES[cls.car_model], seg))
|
||||
break
|
||||
except Exception:
|
||||
if seg == 0:
|
||||
raise
|
||||
lr = None
|
||||
|
||||
if lr is None:
|
||||
raise Exception("Route not found. Is it uploaded?")
|
||||
|
||||
can_msgs = []
|
||||
fingerprint = {i: dict() for i in range(3)}
|
||||
|
||||
Reference in New Issue
Block a user