From 64caa368d67b03a92ae772ecdcf8ef538743c82a Mon Sep 17 00:00:00 2001 From: Himanshu Setia <58999915+setiah@users.noreply.github.com> Date: Fri, 19 Mar 2021 18:25:10 -0700 Subject: [PATCH] Fixes process bootstrap failure in IntegTests (#425) Signed-off-by: Himanshu Setia --- .../groovy/org/elasticsearch/gradle/doc/DocsTestPlugin.groovy | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/buildSrc/src/main/groovy/org/elasticsearch/gradle/doc/DocsTestPlugin.groovy b/buildSrc/src/main/groovy/org/elasticsearch/gradle/doc/DocsTestPlugin.groovy index 1bd0cdeb2e6..f87a0e84698 100644 --- a/buildSrc/src/main/groovy/org/elasticsearch/gradle/doc/DocsTestPlugin.groovy +++ b/buildSrc/src/main/groovy/org/elasticsearch/gradle/doc/DocsTestPlugin.groovy @@ -35,6 +35,10 @@ class DocsTestPlugin implements Plugin { project.pluginManager.apply('elasticsearch.standalone-rest-test') project.pluginManager.apply('elasticsearch.rest-test') + String distribution = System.getProperty('tests.distribution', 'oss') + // The distribution can be configured with -Dtests.distribution on the command line + project.testClusters.integTest.testDistribution = distribution.toUpperCase() + project.testClusters.integTest.nameCustomization = { it.replace("integTest", "node") } // Docs are published separately so no need to assemble project.tasks.assemble.enabled = false