From a15e1b2de08863cc710da3325faf91a6ca3728d2 Mon Sep 17 00:00:00 2001 From: Willem Melching Date: Tue, 26 Oct 2021 14:46:31 +0200 Subject: [PATCH] fix test_models.py (#22694) old-commit-hash: 8cd195d030a4d90820183b46146c0bba294740fb --- .github/workflows/selfdrive_tests.yaml | 2 +- SConstruct | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/selfdrive_tests.yaml b/.github/workflows/selfdrive_tests.yaml index fe0f6267e7..c9a16af141 100644 --- a/.github/workflows/selfdrive_tests.yaml +++ b/.github/workflows/selfdrive_tests.yaml @@ -310,7 +310,7 @@ jobs: run: eval "$BUILD" - name: Test car models run: | - ${{ env.RUN }} "scons -j$(nproc) && \ + ${{ env.RUN }} "scons -j$(nproc) --test && \ 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 diff --git a/SConstruct b/SConstruct index 18c8d2f125..8b682847ac 100644 --- a/SConstruct +++ b/SConstruct @@ -429,6 +429,9 @@ SConscript(['selfdrive/ui/SConscript']) if arch != "Darwin": SConscript(['selfdrive/logcatd/SConscript']) +if GetOption('test'): + SConscript('panda/tests/safety/SConscript') + external_sconscript = GetOption('external_sconscript') if external_sconscript: SConscript([external_sconscript])