Commit cf355c53 authored by Emmanuel Promayon's avatar Emmanuel Promayon
Browse files

FIXED manually re-run failed tests

parent 9fc14383
...@@ -81,7 +81,27 @@ if grep --quiet "Fatal error" $CI_PROJECT_DIR/$PROJECT_LOG_DIR/ci-test.log; then ...@@ -81,7 +81,27 @@ if grep --quiet "Fatal error" $CI_PROJECT_DIR/$PROJECT_LOG_DIR/ci-test.log; then
echo "===== Failed tests =====" echo "===== Failed tests ====="
grep -e "\*\*\*Failed" -e "SegFault" $CI_PROJECT_DIR/$PROJECT_LOG_DIR/test.log grep -e "\*\*\*Failed" -e "SegFault" $CI_PROJECT_DIR/$PROJECT_LOG_DIR/test.log
echo echo
exit 1 echo "===== Re-run failed ====="
# loop over failed
grep -e "\*\*\*Failed" -e "SegFault" $CI_PROJECT_DIR/$PROJECT_LOG_DIR/test.log |
while IFS= read -r line; do
testname=$(echo $line | sed -r 's/.+[0-9]+:\s(.*)\s\..*/\1/g')
ctest -VV \
$testname > >(tee --append ${PROJECT_LOG_DIR}/rerun-test.log | grep --line-buffered -e "Test \#") 2>&1
if grep --quiet "\*\*\*Failed" -e "SegFault" $CI_PROJECT_DIR/$PROJECT_LOG_DIR/rerun-test.log; then
exit 1
echo "Re-run OK"
else else
echo "OK" echo "OK"
fi fi
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment