diff --git a/misc/jenkins/unit_tests/unit_tests.bat b/misc/jenkins/unit_tests/unit_tests.bat index 8b977a315f..de83bd8674 100644 --- a/misc/jenkins/unit_tests/unit_tests.bat +++ b/misc/jenkins/unit_tests/unit_tests.bat @@ -20,10 +20,9 @@ pwd cd unit_tests rem Clean build is needed since some file renames would produce a broken incremental build -make clean rem Only here we are building unit_tests -call compile.bat +call clean_compile.bat pwd ls -l build if not exist build/rusefi_test.exe echo ERROR: FAILED TO COMPILE UNIT TESTS diff --git a/unit_tests/clean_compile.sh b/unit_tests/clean_compile.sh index 515778f6ce..04c3ae0e00 100644 --- a/unit_tests/clean_compile.sh +++ b/unit_tests/clean_compile.sh @@ -1,6 +1,7 @@ #!/bin/bash echo "Compiling unit tests" +make clean +# todo: how comes .dep is not being cleaned by 'make clean'? rm -rf .dep/ -rm -rf build/ make -j$(nproc)