Removal of the log MUST happen after the log has been checked for a
successful run. Removal of run data MAY hapen before this.
Probably data SHOULD be removed early to prevent excess data between runs.
grep -E "${errors}" $log && exit 1
if test "${cleanup}" = "yes" ; then
echo "REMOVE: ${btlayer}"
- rm -f -r ${btlayer} $log
+ rm -f -r ${btlayer}
fi
result=`tail -2 $log | head -1`
test "${result}" = "Build Successful." || ( tail -5 $log ; exit 1 )
+ if test "${cleanup}" = "yes" ; then
+ echo "REMOVE: ${log}"
+ rm -f -r $log
+ fi
}
# Run a single test build by name or opts file