geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ga...@apache.org
Subject svn commit: r720750 - /geronimo/gbuild/daily_build_scripts/testsuite.sh
Date Wed, 26 Nov 2008 06:25:11 GMT
Author: gawor
Date: Tue Nov 25 22:25:10 2008
New Revision: 720750

URL: http://svn.apache.org/viewvc?rev=720750&view=rev
Log:
let's save surefire-reports directories

Modified:
    geronimo/gbuild/daily_build_scripts/testsuite.sh

Modified: geronimo/gbuild/daily_build_scripts/testsuite.sh
URL: http://svn.apache.org/viewvc/geronimo/gbuild/daily_build_scripts/testsuite.sh?rev=720750&r1=720749&r2=720750&view=diff
==============================================================================
--- geronimo/gbuild/daily_build_scripts/testsuite.sh (original)
+++ geronimo/gbuild/daily_build_scripts/testsuite.sh Tue Nov 25 22:25:10 2008
@@ -38,7 +38,7 @@
 BRANCH_TEST_DIR=$TEST_DIR/$BRANCH_DIR
 MAIL_FILE=$BRANCH_TEST_DIR/mail.txt
 
-function createLogsDir() {
+function logFiles() {
    FILES=`find . -name $1`
    for FILE in $FILES
    do
@@ -48,6 +48,15 @@
    done
 }
 
+function logDirs() {
+   DIRS=`find . -name $1`
+   for DIR in $DIRS
+   do
+    mkdir -p $LOG_DIR/$DIR
+    cp -r $DIR/* $LOG_DIR/$DIR
+   done
+}
+
 function runTests() {
    CONTAINER=$1
    EXCLUDE_TESTS=$2
@@ -65,7 +74,8 @@
    cat $testLog >> $mergedTestLog
    mvn -B site-deploy -DbuildNumber=$ds-$BRANCH_ID-$CONTAINER
 
-   createLogsDir geronimo.log
+   logFiles "geronimo.log"
+   logDirs "surefire-reports"
 
    scp -r $LOG_DIR ${REMOTE_ACCOUNT}@${REMOTE_MACHINE}:$bin_dir
 



Mime
View raw message