diff options
author | Jon Marius Venstad <venstad@gmail.com> | 2022-02-28 10:22:22 +0100 |
---|---|---|
committer | Jon Marius Venstad <venstad@gmail.com> | 2022-02-28 10:22:22 +0100 |
commit | 307283b6e11926860af4c0c71823b9b0f6da6ac3 (patch) | |
tree | 875d088bce549ce043f18292d32324ea80a8d339 /controller-server | |
parent | 7d786652ca04915475c62c30fad1ba93b2603d78 (diff) |
Let test runnerss decide when NO_TESTS are ok
Diffstat (limited to 'controller-server')
-rw-r--r-- | controller-server/src/main/java/com/yahoo/vespa/hosted/controller/deployment/InternalStepRunner.java | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/controller-server/src/main/java/com/yahoo/vespa/hosted/controller/deployment/InternalStepRunner.java b/controller-server/src/main/java/com/yahoo/vespa/hosted/controller/deployment/InternalStepRunner.java index 87268f88363..f89e262aac2 100644 --- a/controller-server/src/main/java/com/yahoo/vespa/hosted/controller/deployment/InternalStepRunner.java +++ b/controller-server/src/main/java/com/yahoo/vespa/hosted/controller/deployment/InternalStepRunner.java @@ -674,15 +674,12 @@ public class InternalStepRunner implements StepRunner { controller.jobController().updateTestReport(id); return Optional.of(error); case NO_TESTS: - if (isSetup) { - return Optional.of(running); - } TesterCloud.Suite suite = TesterCloud.Suite.of(id.type(), isSetup); logger.log(INFO, "No tests were found in the test package, for test suite '" + suite + "'"); logger.log(INFO, "The test package must either contain basic HTTP tests under 'tests/<suite-name>/', " + "or a Java test bundle under 'components/' with at least one test with the annotation " + "for this suite. See docs.vespa.ai/en/testing.html for details."); - return Optional.of(running); // Let no tests pass until all apps meet this requirement. + return Optional.of(testFailure); case SUCCESS: logger.log("Tests completed successfully."); controller.jobController().updateTestReport(id); |