From: Jan-Benedict G. <jb...@us...> - 2005-12-19 12:30:40
|
Update of /cvsroot/linux-vax/toolchain/scripts In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv25102 Modified Files: run_test_build.sh Log Message: - Don't use human-readable form of the current time, but YYYYMMDD-hhmmss. - Save testsuite results, if available. Index: run_test_build.sh =================================================================== RCS file: /cvsroot/linux-vax/toolchain/scripts/run_test_build.sh,v retrieving revision 1.11 retrieving revision 1.12 diff -u -d -r1.11 -r1.12 --- run_test_build.sh 18 Dec 2005 12:22:42 -0000 1.11 +++ run_test_build.sh 19 Dec 2005 12:30:31 -0000 1.12 @@ -24,17 +24,17 @@ I_AM="Nemo" VERSION="$Revision$" -START_TIME="`date --utc`" +START_TIME="`date --utc '+%Y%m%d-%H%M%S'`" # # $1: Subject # function send_stdin() { - STOP_TIME="`date --utc`" + STOP_TIME="`date --utc '+%Y%m%d-%H%M%S'`" mail -a "X-Build-Robot-Id: ${I_AM}, version${VERSION} running on `hostname`" \ -a "X-Build-Robot-Target: ${TARGET}" \ - -a "X-Build-Robot-Start: ${START_TIME}" \ - -a "X-Build-Robot-Stop: ${STOP_TIME}" \ + -a "X-Build-Robot-Start: ${START_TIME} UTC" \ + -a "X-Build-Robot-Stop: ${STOP_TIME} UTC" \ -s "$1" ${SEND_MAIL_TO} } @@ -61,6 +61,13 @@ } function unlock() { + if ls ${BUILD_DIRECTORY}/*.sh > /dev/null 2>&1; then + pushd "${BUILD_DIRECTORY}" > /dev/null 2>&1 + for REPORT in *.sh; do + cp ${REPORT} "/tmp/report-${START_TIME}-${REPORT}" + done + popd > /dev/null 2>&1 + fi rm -rf "${BUILD_DIRECTORY}" rm -f "${LOCKFILE}" } |