diff options
author | Valerij Fredriksen <freva@users.noreply.github.com> | 2022-04-28 22:38:46 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-04-28 22:38:46 +0200 |
commit | d9e16f94069edae6b56a64020ace4a4829ce3bb7 (patch) | |
tree | 0a2047883642a65f75dcd3080f8424eebbd0a515 | |
parent | 415c02613c96c081e86a665a51a667b0f95935d7 (diff) | |
parent | fc6d898e311ae647d2d0b7a0ff5167de61539442 (diff) |
Merge pull request #22349 from vespa-engine/jonmv/handle-no-stuies-beter
Handle no suites better
-rw-r--r-- | controller-server/src/main/java/com/yahoo/vespa/hosted/controller/application/pkg/TestPackage.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/controller-server/src/main/java/com/yahoo/vespa/hosted/controller/application/pkg/TestPackage.java b/controller-server/src/main/java/com/yahoo/vespa/hosted/controller/application/pkg/TestPackage.java index fb352848911..751f6674128 100644 --- a/controller-server/src/main/java/com/yahoo/vespa/hosted/controller/application/pkg/TestPackage.java +++ b/controller-server/src/main/java/com/yahoo/vespa/hosted/controller/application/pkg/TestPackage.java @@ -142,7 +142,7 @@ public class TestPackage { byte[] testsJar = ZipEntries.readFile(testPackage, "components/" + path, 1 << 30); Manifest manifest = new JarInputStream(new ByteArrayInputStream(testsJar)).getManifest(); for (String suite : manifest.getMainAttributes().getValue("X-JDisc-Test-Bundle-Categories").split(",")) - switch (suite.trim()) { + if ( ! suite.isBlank()) switch (suite.trim()) { case "SystemTest": suites.add(system); break; case "StagingSetup": suites.add(staging_setup); break; case "StagingTest": suites.add(staging); break; |