Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(192)

Unified Diff: compiler/java/com/google/dart/compiler/UnitTestBatchRunner.java

Issue 11366213: Get real result for batch exacution. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « compiler/java/com/google/dart/compiler/DartCompiler.java ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: compiler/java/com/google/dart/compiler/UnitTestBatchRunner.java
diff --git a/compiler/java/com/google/dart/compiler/UnitTestBatchRunner.java b/compiler/java/com/google/dart/compiler/UnitTestBatchRunner.java
index 19ca2772408fff43181828b3605d0414a4654e69..ce635091001c6f4451d756274d97eac92e9f735b 100644
--- a/compiler/java/com/google/dart/compiler/UnitTestBatchRunner.java
+++ b/compiler/java/com/google/dart/compiler/UnitTestBatchRunner.java
@@ -25,7 +25,7 @@ public class UnitTestBatchRunner {
*
* @param batchArgs command line arguments forwarded from main().
*/
- public static void runAsBatch(String[] batchArgs, Invocation toolInvocation) throws Throwable {
+ public static boolean runAsBatch(String[] batchArgs, Invocation toolInvocation) throws Throwable {
System.out.println(">>> BATCH START");
// Read command lines in from stdin and create a new compiler for each one.
@@ -34,6 +34,7 @@ public class UnitTestBatchRunner {
long startTime = System.currentTimeMillis();
int testsFailed = 0;
int totalTests = 0;
+ boolean batchResult = true;
try {
String line;
for (; (line = cmdlineReader.readLine()) != null; totalTests++) {
@@ -45,6 +46,7 @@ public class UnitTestBatchRunner {
if (!result) {
testsFailed++;
}
+ batchResult &= result;
// Write stderr end token and flush.
System.err.println(">>> EOF STDERR");
System.err.flush();
@@ -63,5 +65,6 @@ public class UnitTestBatchRunner {
System.out.println(">>> BATCH END (" + (totalTests - testsFailed) + "/"
+ totalTests + ") " + elapsed + "ms");
System.out.flush();
+ return batchResult;
}
}
« no previous file with comments | « compiler/java/com/google/dart/compiler/DartCompiler.java ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698