Mentions légales du service

Skip to content
Snippets Groups Projects
Commit 587f90af authored by hhakim's avatar hhakim
Browse files

Fix ctest_python/matlab ci job status code in case of all tests passed.

The grep just before the end of job returns exit status 1 if the no failed job was found so the job needs to explicitly returns 0 (success).
parent cc5513d5
No related branches found
No related tags found
No related merge requests found
......@@ -60,8 +60,8 @@ ctest_python:
- deactivate
- rm -Rf junit_venv
# fail the ci job if any ctest test (or unit test) have failed
- FAILED_TESTS=$(grep -B 1 'Outcome:.*Failed' build_FaustLinuxPython/python_pyfaust_test_output.html | sed -ne 's%.*Test case:.*<b>\(.*\)</b>.*%\1%p')
- if [ -n "${FAILED_TESTS}" ]; then echo "Failed tests:${FAILED_TESTS}"; exit 1;fi
- echo "Failed tests:"
- if grep -B 1 'Outcome:.*Failed' build_FaustLinuxPython/python_pyfaust_test_output.html | sed -ne 's%.*Test case:.*<b>\(.*\)</b>.*%\1%p'; then exit 1; else echo "all tests passed"; exit 0;fi
except:
- schedules
- tags
......@@ -89,8 +89,8 @@ ctest_matlab:
- deactivate
- rm -Rf junit_venv
# fail the ci job if any ctest test (or unit test) have failed
- FAILED_TESTS=$(grep -B 1 'Outcome:.*Failed' ${BUILD_DIR}/matlab_matfaust_test_output.html | sed -ne 's%.*Test case:.*<b>\(.*\)</b>.*%\1%p')
- if [ -n "${FAILED_TESTS}" ]; then echo "Failed tests:${FAILED_TESTS}"; exit 1;fi
- echo "Failed tests:"
- if grep -B 1 'Outcome:.*Failed' ${BUILD_DIR}/matlab_matfaust_test_output.html | sed -ne 's%.*Test case:.*<b>\(.*\)</b>.*%\1%p'; then exit 1; else echo "all tests passed"; exit 0;fi
except:
- schedules
- tags
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment