summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStas Negara <snegara@google.com>2015-03-10 10:58:51 -0700
committerStas Negara <snegara@google.com>2015-03-10 12:43:23 -0700
commit2fa05d289b4da7a94d67a965f2cdefb02d268412 (patch)
treeddb26d4b65560332531d345a7c1a2368eccdab8f
parent691e9e20009d628a239fb47dbd064ceebf87e5c0 (diff)
downloadtesting-2fa05d289b4da7a94d67a965f2cdefb02d268412.tar.gz
Fixed support for fake bucket runs.
Change-Id: I26c1b85f1adcbf8be3294c06dff1dcaeeebf929e
-rw-r--r--src/com/google/gct/testing/CloudResultsLoader.java11
1 files changed, 8 insertions, 3 deletions
diff --git a/src/com/google/gct/testing/CloudResultsLoader.java b/src/com/google/gct/testing/CloudResultsLoader.java
index 8cdf4db..41b7f89 100644
--- a/src/com/google/gct/testing/CloudResultsLoader.java
+++ b/src/com/google/gct/testing/CloudResultsLoader.java
@@ -105,9 +105,14 @@ public class CloudResultsLoader {
this.cloudProjectId = cloudProjectId;
this.testRunListener = testRunListener;
this.bucketName = bucketName;
- testMatrixId = testMatrix.getTestMatrixId();
- for (TestExecution testExecution : testMatrix.getTestExecutions()) {
- allConfigurationInstances.add(getEncodedConfigurationNameForTestExecution(testExecution));
+ // testMatrix is null for runs with a fake bucket.
+ if (testMatrix != null) {
+ testMatrixId = testMatrix.getTestMatrixId();
+ for (TestExecution testExecution : testMatrix.getTestExecutions()) {
+ allConfigurationInstances.add(getEncodedConfigurationNameForTestExecution(testExecution));
+ }
+ } else {
+ testMatrixId = null;
}
}