diff options
author | Stas Negara <snegara@google.com> | 2015-07-07 00:28:33 +0000 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2015-07-07 00:28:33 +0000 |
commit | ac23ee0a510ae85452489d33339db5022099e89c (patch) | |
tree | 388b56fdc4eaa8d7852a6bd73ed26425f6dc1770 | |
parent | 77d266af0ec4bac23e45b21e80614877398e61aa (diff) | |
parent | d26d9a381824bf724f08bfd6b008759d5de1c489 (diff) | |
download | testing-ac23ee0a510ae85452489d33339db5022099e89c.tar.gz |
Merge "Handle additional skipped test execution states." into studio-1.4-dev
-rw-r--r-- | src/com/google/gct/testing/CloudResultsLoader.java | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/com/google/gct/testing/CloudResultsLoader.java b/src/com/google/gct/testing/CloudResultsLoader.java index a15b9d4..24dd514 100644 --- a/src/com/google/gct/testing/CloudResultsLoader.java +++ b/src/com/google/gct/testing/CloudResultsLoader.java @@ -242,14 +242,15 @@ public class CloudResultsLoader { } String testExecutionState = testExecution.getState(); if (testExecutionState.equals("UNSUPPORTED_ENVIRONMENT")) { - handleTriggeringError(results, encodedConfigurationInstance, - "Skipped triggering the test execution: Incompatible API level for requested model"); + handleTriggeringError(results, encodedConfigurationInstance, "Incompatible device/OS combination"); } else if (testExecutionState.equals("INCOMPATIBLE_ENVIRONMENT")) { // It is not expected to happen for Android Studio client. - handleTriggeringError(results, encodedConfigurationInstance, "The given APK is not compatible with this configuration"); + handleTriggeringError(results, encodedConfigurationInstance, "Application does not support the specified OS version"); } else if (testExecutionState.equals("INVALID")) { // It is not expected to happen for Android Studio client. handleTriggeringError(results, encodedConfigurationInstance, "The provided APK is invalid"); + } else if (testExecutionState.equals("INCOMPATIBLE_ARCHITECTURE")) { + handleTriggeringError(results, encodedConfigurationInstance, "Application does not support the specified device architecture"); } else if (!testExecutionState.equals("PENDING")) { if (testExecutionState.equals("ERROR")) { String newProgress = INFRASTRUCTURE_FAILURE_PREFIX + " " + testExecution.getTestDetails().getErrorMessage(); @@ -275,8 +276,8 @@ public class CloudResultsLoader { } } - private void handleTriggeringError(Map<String, ConfigurationResult> results, String encodedConfigurationInstance, String newProgress) { - reportNewProgress(encodedConfigurationInstance, newProgress); + private void handleTriggeringError(Map<String, ConfigurationResult> results, String encodedConfigurationInstance, String errorMessage) { + reportNewProgress(encodedConfigurationInstance, "Skipped triggering the test execution: " + errorMessage); ConfigurationResult result = getOrCreateConfigurationResult(encodedConfigurationInstance, results); result.setTriggeringError(true); finishedConfigurationInstances.add(encodedConfigurationInstance); |