diff options
Diffstat (limited to 'src/com/google/gct/testing/CloudResultsLoader.java')
-rw-r--r-- | src/com/google/gct/testing/CloudResultsLoader.java | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/com/google/gct/testing/CloudResultsLoader.java b/src/com/google/gct/testing/CloudResultsLoader.java index e5e3242..ad135a8 100644 --- a/src/com/google/gct/testing/CloudResultsLoader.java +++ b/src/com/google/gct/testing/CloudResultsLoader.java @@ -175,7 +175,7 @@ public class CloudResultsLoader { for (Map.Entry<String, TestExecution> testExecutionEntry : testExecutions.entrySet()) { String encodedConfigurationInstance = testExecutionEntry.getKey(); String testExecutionId = testExecutionEntry.getValue().getId(); - if (testExecutionId.startsWith("Error ")) { // A backend error happened while triggering this test execution. + if (failedToTriggerTest(testExecutionId)) { // A backend error happened while triggering this test execution. String diffProgress = testExecutionId + "\n"; // The test execution's id carries the error message for the user. String previousProgress = getPreviousProgress(encodedConfigurationInstance); if (!previousProgress.endsWith(diffProgress)) { @@ -217,6 +217,10 @@ public class CloudResultsLoader { } } + private boolean failedToTriggerTest(String testExecutionId) { + return testExecutionId.startsWith("Error ") || testExecutionId.startsWith("Skipped "); + } + private void reportNewProgress(String encodedConfigurationInstance, String previousProgress, String newProgress) { newDataReceived = true; configurationProgress.put(encodedConfigurationInstance, newProgress); |