* only build if bootstrap works
* display last 20 lines of test result on failure
we want to see the real error plus, not just "make Error 1" messages
* use chmod to improve cleanup removal after (un)install test failures
# build results
bzr update 2>&1
- ./bootstrap.sh
+ ./bootstrap.sh &&
./test-builds.sh --cleanup
) | /usr/sbin/sendmail -t
if test "${cleanup}" = "yes" ; then
echo "REMOVE DATA: ${btlayer}"
+ chmod -R 777 ${btlayer}
rm -f -r ${btlayer}
fi
fi
else
echo "Build Failed. Last log lines are:"
- tail -5 ${log}
+ tail -20 ${log}
globalResult=1
fi