fix test_models.py (#22694)

old-commit-hash: 8cd195d030
This commit is contained in:
Willem Melching
2021-10-26 14:46:31 +02:00
committed by GitHub
parent 19ecbfa0b1
commit a15e1b2de0
2 changed files with 4 additions and 1 deletions

View File

@@ -310,7 +310,7 @@ jobs:
run: eval "$BUILD" run: eval "$BUILD"
- name: Test car models - name: Test car models
run: | run: |
${{ env.RUN }} "scons -j$(nproc) && \ ${{ env.RUN }} "scons -j$(nproc) --test && \
coverage run selfdrive/test/test_models.py" coverage run selfdrive/test/test_models.py"
- name: Upload coverage to Codecov - name: Upload coverage to Codecov
run: bash <(curl -s https://codecov.io/bash) -v -F test_car_models run: bash <(curl -s https://codecov.io/bash) -v -F test_car_models

View File

@@ -429,6 +429,9 @@ SConscript(['selfdrive/ui/SConscript'])
if arch != "Darwin": if arch != "Darwin":
SConscript(['selfdrive/logcatd/SConscript']) SConscript(['selfdrive/logcatd/SConscript'])
if GetOption('test'):
SConscript('panda/tests/safety/SConscript')
external_sconscript = GetOption('external_sconscript') external_sconscript = GetOption('external_sconscript')
if external_sconscript: if external_sconscript:
SConscript([external_sconscript]) SConscript([external_sconscript])