handle missing routes better in test car models

This commit is contained in:
Adeeb Shihadeh
2021-09-06 19:21:06 -07:00
parent 21ae64868e
commit 81006b03c2
2 changed files with 5 additions and 5 deletions

View File

@@ -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

View File

@@ -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)}