Commit 118d9e07 authored by Julien Veyssier's avatar Julien Veyssier
Browse files

in parallel check, better failure detection with 'wait'

parent f29ec718
......@@ -757,7 +757,10 @@ else
#echo -ne "[$nbdone/$NB_PKG] [$pc %] "
printLeftPurple "R CMD check ${p_pkgname[$j]}_${p_pkgversion[$j]}.tar.gz on slot $j ..."
# if there was no error
if [[ "`cat ${p_pkgname[$j]}.Rcheck/00check.log | egrep -i 'error|failed' | grep -v "OK" | grep -v "WARNING" | wc -l`" == "0" ]]; then
#if [[ "`cat ${p_pkgname[$j]}.Rcheck/00check.log | egrep -i 'error|failed' | grep -v "OK" | grep -v "WARNING" | wc -l`" == "0" ]]; then
pid=${p_pid[$j]}
wait $pid
if [[ $? == 0 ]]; then
touch ${p_pkgname[$j]}.CHECKOK
#echo "R CMD check ${p_pkgname[$j]}_${p_pkgversion[$j]}.tar.gz ... FINISHED SUCCESSFULLY on slot $j at `date '+%H:%M:%S'` ... "
printRightGreen "FINISHED SUCCESSFULLY at `date '+%H:%M:%S'` [$nbdone/$NB_PKG] [$pc%]"
......
Markdown is supported
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