diff --git a/build.sh b/build.sh index b964a54f..2e6b7d7f 100755 --- a/build.sh +++ b/build.sh @@ -307,7 +307,8 @@ then TestsPath2=${__currentScriptDir}/src/python/tests TestsPath3=${__currentScriptDir}/src/python/tests_extended ReportPath=${__currentScriptDir}/build/TestCoverageReport - "${PythonExe}" -m pytest -n 4 --verbose --maxfail=1000 --capture=sys "${TestsPath2}" "${TestsPath1}" + "${PythonExe}" -m pytest -n 4 --verbose --maxfail=1000 --capture=sys "${TestsPath2}" "${TestsPath1}" || \ + "${PythonExe}" -m pytest -n 4 --last-failed --verbose --maxfail=1000 --capture=sys "${TestsPath2}" "${TestsPath1}" if [ ${__runExtendedTests} = true ] then