[addressing-devel] FuraSrc/common/TestsuiteUtils/src/com/gridsystems/testsuite/junit/cl TestRunner
Brought to you by:
nodens2k
From: Gridsystems C. <gsc...@us...> - 2008-09-03 21:27:53
|
Update of /cvsroot/fura/FuraSrc/common/TestsuiteUtils/src/com/gridsystems/testsuite/junit/cl In directory sc8-pr-cvs17.sourceforge.net:/tmp/cvs-serv8372/FuraSrc/common/TestsuiteUtils/src/com/gridsystems/testsuite/junit/cl Modified Files: TestRunner.java Log Message: cvssync-20080903232636 Index: TestRunner.java =================================================================== RCS file: /cvsroot/fura/FuraSrc/common/TestsuiteUtils/src/com/gridsystems/testsuite/junit/cl/TestRunner.java,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** TestRunner.java 16 Jul 2008 06:56:22 -0000 1.3 --- TestRunner.java 3 Sep 2008 21:27:23 -0000 1.4 *************** *** 17,23 **** package com.gridsystems.testsuite.junit.cl; - import java.io.ByteArrayOutputStream; import java.io.File; - import java.io.PrintStream; import java.text.DateFormat; import java.text.DecimalFormat; --- 17,21 ---- *************** *** 28,32 **** import java.util.Hashtable; import java.util.ResourceBundle; - import java.util.StringTokenizer; import java.util.List; import java.util.Vector; --- 26,29 ---- *************** *** 69,72 **** --- 66,70 ---- * * @author Job Torres + * @author jrossello * @version 1.0 */ *************** *** 141,146 **** * Send a mail with the results. */ - protected boolean sendMail = false; /** * Verbose log to System.out. --- 139,154 ---- * Send a mail with the results. */ protected boolean sendMail = false; + + /** + * Send extra logs as attached files. + */ + protected boolean sendLogs = false; + + /** + * Extra logs to attach to the mail. + */ + protected ArrayList<String> extraLogs = new ArrayList<String>(); + /** * Verbose log to System.out. *************** *** 860,863 **** --- 868,883 ---- String logFileName = Logger.getLogLevelLiteral(this.logLevel) + ".html"; String[] logFiles = new String[] {LOGS_DIR + logFileName}; + + // if extra logs have to be send, add them to the log files + if (extraLogs.size() > 0) { + String[] aux = new String[extraLogs.size()]; + extraLogs.toArray(aux); + logFiles = new String[extraLogs.size() + 1]; + logFiles[0] = LOGS_DIR + logFileName; + for (int i = 0; i < aux.length; i++) { + logFiles[i + 1] = aux[i]; + } + } + String from = "tes...@gr..."; boolean passed = this.result.wasSuccessful(); |