From 48cc60e3611484520306aa9d3784ed6fc1c84199 Mon Sep 17 00:00:00 2001 From: Rene Groeschke Date: Mon, 18 Sep 2023 14:14:11 +0200 Subject: [PATCH] More cleanup --- .../precommit/TestingConventionsPrecommitPluginFuncTest.groovy | 2 ++ .../elasticsearch/gradle/fixtures/AbstractGradleFuncTest.groovy | 1 - 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/build-tools-internal/src/integTest/groovy/org/elasticsearch/gradle/internal/precommit/TestingConventionsPrecommitPluginFuncTest.groovy b/build-tools-internal/src/integTest/groovy/org/elasticsearch/gradle/internal/precommit/TestingConventionsPrecommitPluginFuncTest.groovy index 31ecffc07f63f..f6cbef21f5655 100644 --- a/build-tools-internal/src/integTest/groovy/org/elasticsearch/gradle/internal/precommit/TestingConventionsPrecommitPluginFuncTest.groovy +++ b/build-tools-internal/src/integTest/groovy/org/elasticsearch/gradle/internal/precommit/TestingConventionsPrecommitPluginFuncTest.groovy @@ -172,6 +172,7 @@ class TestingConventionsPrecommitPluginFuncTest extends AbstractGradleInternalPl def "applies conventions on yaml-rest-test tests"() { given: + buildApiRestrictionsDisabled = true clazz(dir('src/yamlRestTest/java'), "org.elasticsearch.test.rest.yaml.ESClientYamlSuiteTestCase") buildFile << """ apply plugin:'elasticsearch.legacy-yaml-rest-test' @@ -211,6 +212,7 @@ class TestingConventionsPrecommitPluginFuncTest extends AbstractGradleInternalPl @Unroll def "applies conventions on #sourceSetName tests"() { given: + buildApiRestrictionsDisabled = pluginName.contains('legacy') clazz(dir("src/${sourceSetName}/java"), "org.elasticsearch.test.ESIntegTestCase") clazz(dir("src/${sourceSetName}/java"), "org.elasticsearch.test.rest.ESRestTestCase") buildFile << """ diff --git a/build-tools/src/testFixtures/groovy/org/elasticsearch/gradle/fixtures/AbstractGradleFuncTest.groovy b/build-tools/src/testFixtures/groovy/org/elasticsearch/gradle/fixtures/AbstractGradleFuncTest.groovy index e6d41fe0d0b07..8218829fe017b 100644 --- a/build-tools/src/testFixtures/groovy/org/elasticsearch/gradle/fixtures/AbstractGradleFuncTest.groovy +++ b/build-tools/src/testFixtures/groovy/org/elasticsearch/gradle/fixtures/AbstractGradleFuncTest.groovy @@ -79,7 +79,6 @@ abstract class AbstractGradleFuncTest extends Specification { } GradleRunner gradleRunner(File projectDir, Object... arguments) { - println "AbstractGradleFuncTest.gradleRunner" return new NormalizeOutputGradleRunner( new BuildConfigurationAwareGradleRunner( new InternalAwareGradleRunner(