harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From smish...@apache.org
Subject svn commit: r593008 - in /harmony/enhanced/buildtest/branches/2.0: adaptors/eut/parameters.xml adaptors/eut33/parameters.xml tests/eut/summary-reporter/src/org/apache/harmony/eut/reporter/EUTTXTReportEmitter.java
Date Thu, 08 Nov 2007 04:31:38 GMT
Author: smishura
Date: Wed Nov  7 20:31:37 2007
New Revision: 593008

URL: http://svn.apache.org/viewvc?rev=593008&view=rev
Log:
Apply modified patch to fix report location from HARMONY-5082:
([buildtest][eut] fix report location and EFL)

Modified:
    harmony/enhanced/buildtest/branches/2.0/adaptors/eut/parameters.xml
    harmony/enhanced/buildtest/branches/2.0/adaptors/eut33/parameters.xml
    harmony/enhanced/buildtest/branches/2.0/tests/eut/summary-reporter/src/org/apache/harmony/eut/reporter/EUTTXTReportEmitter.java

Modified: harmony/enhanced/buildtest/branches/2.0/adaptors/eut/parameters.xml
URL: http://svn.apache.org/viewvc/harmony/enhanced/buildtest/branches/2.0/adaptors/eut/parameters.xml?rev=593008&r1=593007&r2=593008&view=diff
==============================================================================
--- harmony/enhanced/buildtest/branches/2.0/adaptors/eut/parameters.xml (original)
+++ harmony/enhanced/buildtest/branches/2.0/adaptors/eut/parameters.xml Wed Nov  7 20:31:37
2007
@@ -67,5 +67,5 @@
     </optional>
 
     <!-- CC specific configuration -->
-    <cc summary="${checkouts.dir}/eut/report.txt"/>
+    <cc summary="${results.dir}/eut/latest/report.txt"/>
 </parameters>

Modified: harmony/enhanced/buildtest/branches/2.0/adaptors/eut33/parameters.xml
URL: http://svn.apache.org/viewvc/harmony/enhanced/buildtest/branches/2.0/adaptors/eut33/parameters.xml?rev=593008&r1=593007&r2=593008&view=diff
==============================================================================
--- harmony/enhanced/buildtest/branches/2.0/adaptors/eut33/parameters.xml (original)
+++ harmony/enhanced/buildtest/branches/2.0/adaptors/eut33/parameters.xml Wed Nov  7 20:31:37
2007
@@ -67,5 +67,5 @@
     </optional>
 
     <!-- CC specific configuration -->
-    <cc summary="${checkouts.dir}/eut33/report.txt"/>
+    <cc summary="${results.dir}/eut33/latest/report.txt"/>
 </parameters>

Modified: harmony/enhanced/buildtest/branches/2.0/tests/eut/summary-reporter/src/org/apache/harmony/eut/reporter/EUTTXTReportEmitter.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/buildtest/branches/2.0/tests/eut/summary-reporter/src/org/apache/harmony/eut/reporter/EUTTXTReportEmitter.java?rev=593008&r1=593007&r2=593008&view=diff
==============================================================================
--- harmony/enhanced/buildtest/branches/2.0/tests/eut/summary-reporter/src/org/apache/harmony/eut/reporter/EUTTXTReportEmitter.java
(original)
+++ harmony/enhanced/buildtest/branches/2.0/tests/eut/summary-reporter/src/org/apache/harmony/eut/reporter/EUTTXTReportEmitter.java
Wed Nov  7 20:31:37 2007
@@ -25,6 +25,12 @@
  */
 final class EUTTXTReportEmitter {
 
+    /** 
+     * Holds the maximum number of unexpected errors/failure to be included to
+     * report.
+     */
+    private static int MAX_ERROR_FAILURE_NUMBER = 10;
+
     /** Keeps the output stream to write the report.txt data into. */
     private static PrintWriter out;
 
@@ -104,7 +110,9 @@
         } else {
             out.println("Unexpected failures : " + issuesNum);
         }
+        int reported_issues_num = 0;
 
+EMIT_ERROR_FAILURE_RESULTS:
         for (int i = 0; i < EUTReporter.suiteList.size(); i++) {
             EUTSuiteInfo si = EUTReporter.suiteList.get(i);
 
@@ -131,6 +139,20 @@
                 out.println(ti.testClass + '.' + ti.testName);
                 out.println(ti.testIssueMessage);
                 out.println(ti.testIssueContent.toString().trim());
+                reported_issues_num++;
+
+                /*
+                 * The resulted report must not be too big, so one needs to
+                 * limit a number of reported issues...
+                 */
+                if (reported_issues_num == MAX_ERROR_FAILURE_NUMBER) {
+                    if (reported_issues_num !=
+                            si.unexpectedErrorFailureTests.size() - 1) {
+                        out.println();
+                        out.println("...Skipped the rest of reports...");
+                    }
+                    break EMIT_ERROR_FAILURE_RESULTS;
+                }
             }
         }
     }



Mime
View raw message