Index: testing/android/appurify_support/java/src/org/chromium/test/support/RobotiumBundleGenerator.java |
diff --git a/testing/android/appurify_support/java/src/org/chromium/test/support/RobotiumBundleGenerator.java b/testing/android/appurify_support/java/src/org/chromium/test/support/RobotiumBundleGenerator.java |
index e006954cfb2d9dedcab12dcfa3949b0562330a65..167e7b92a4f900e23b3ef0c7097d22fee9c9b323 100644 |
--- a/testing/android/appurify_support/java/src/org/chromium/test/support/RobotiumBundleGenerator.java |
+++ b/testing/android/appurify_support/java/src/org/chromium/test/support/RobotiumBundleGenerator.java |
@@ -20,7 +20,6 @@ |
public Bundle generate(Map<String, ResultsBundleGenerator.TestResult> rawResults) { |
int testsPassed = 0; |
int testsFailed = 0; |
- int testsErrored = 0; |
for (Map.Entry<String, ResultsBundleGenerator.TestResult> entry : rawResults.entrySet()) { |
switch (entry.getValue()) { |
@@ -33,9 +32,6 @@ |
Log.d(TAG, "FAILED: " + entry.getKey()); |
++testsFailed; |
break; |
- case UNKNOWN: |
- ++testsErrored; |
- break; |
default: |
Log.w(TAG, "Unhandled: " + entry.getKey() + ", " |
+ entry.getValue().toString()); |
@@ -44,11 +40,10 @@ |
} |
StringBuilder resultBuilder = new StringBuilder(); |
- if (testsFailed > 0 || testsErrored > 0) { |
- resultBuilder.append("\nFAILURES!!! ") |
- .append("Tests run: ").append(Integer.toString(rawResults.size())) |
- .append(", Failures: ").append(Integer.toString(testsFailed)) |
- .append(", Errors: ").append(Integer.toString(testsErrored)); |
+ if (testsFailed > 0) { |
+ resultBuilder.append( |
+ "\nFAILURES!!! Tests run: " + Integer.toString(rawResults.size()) |
+ + ", Failures: " + Integer.toString(testsFailed) + ", Errors: 0"); |
} else { |
resultBuilder.append("\nOK (" + Integer.toString(testsPassed) + " tests)"); |
} |