do_regtest: Make summary and status more visible

This commit is contained in:
Ole Schütt 2019-05-15 14:37:41 +02:00 committed by Ole Schütt
parent 432c3ca78d
commit 1805f49e32

View file

@ -654,8 +654,8 @@ if [[ -f ${lockfile} ]]; then
echo " remove the lockfile ${lockfile}"
echo " first and retry"
rm -rf ${dir_out}
echo "Summary: Test directory is locked."
echo "Status: UNKNOWN"
echo -e "\nSummary: Test directory is locked."
echo -e "Status: UNKNOWN\n"
exit 7
else
echo "WARNING: stale lockfile in directory ${dir_last} "
@ -834,8 +834,8 @@ if [[ ${nobuild} != "nobuild" ]]; then
echo "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" >>${error_description_file}
echo "ERROR: ${make} -j $((maxbuildtasks)) ${ARCH_SPEC} VERSION=${cp2k_version} failed" >>${error_description_file}
cat "${error_description_file}"
echo "Summary: Compilation failed."
echo "Status: FAILED"
echo -e "\nSummary: Compilation failed."
echo -e "Status: FAILED\n"
rm ${lockfile}
exit 4
else
@ -1213,12 +1213,12 @@ EOF
REPORT_SUMMARY+=$(printf "; memleaks: %d" ${n_leaks})
fi
REPORT_SUMMARY+=$(python -c "print('; %.0fmin'%(${full_timing_all}/60.0))")
echo "Summary: ${REPORT_SUMMARY}"
echo -e "\nSummary: ${REPORT_SUMMARY}"
if ((n_wrong_results > 0)) || ((n_runtime_error > 0)) || ((n_leaks > 0)); then
echo "Status: FAILED"
echo -e "Status: FAILED\n"
else
echo "Status: OK"
echo -e "Status: OK\n"
fi
echo "--------------------------------------------------------------------------"