diff --git a/run_tests.sh b/run_tests.sh index 7afefae4..d70278c1 100755 --- a/run_tests.sh +++ b/run_tests.sh @@ -415,10 +415,6 @@ rm -f "${LOG_DIR}/run_failed.txt" for t in ${failed[*]}; do echo "$t" >> "${LOG_DIR}/run_failed.txt" done -if [ -f "${LOG_DIR}/run_failed.txt" ]; then - echo "$(date) - Failed scenarios:" - cat "${LOG_DIR}/run_failed.txt" -fi if [[ "${PROV_TYPE}" == "full" ]] ; then echo "$(date) - Delete provided scenarios" @@ -486,4 +482,8 @@ fi cfg_debug_off echo "$(date) - Done[${error_flag}]" +if [ -f "${LOG_DIR}/run_failed.txt" ]; then + echo "$(date) - Failed scenarios:" + cat "${LOG_DIR}/run_failed.txt" +fi exit ${error_flag}