From bcfcbb5a9d2cf75e87a5a44a510ca08c8750943e Mon Sep 17 00:00:00 2001 From: Nick Cross Date: Fri, 4 Oct 2024 08:44:05 +0100 Subject: [PATCH] Try a more minimal publish for test time --- ...nTelemetryJavaInstrumentationProjectFunctionalTest.java | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/manipulation/src/functTest/java/org/jboss/gm/manipulation/OpenTelemetryJavaInstrumentationProjectFunctionalTest.java b/manipulation/src/functTest/java/org/jboss/gm/manipulation/OpenTelemetryJavaInstrumentationProjectFunctionalTest.java index a0cab930..9298f5a6 100644 --- a/manipulation/src/functTest/java/org/jboss/gm/manipulation/OpenTelemetryJavaInstrumentationProjectFunctionalTest.java +++ b/manipulation/src/functTest/java/org/jboss/gm/manipulation/OpenTelemetryJavaInstrumentationProjectFunctionalTest.java @@ -60,8 +60,9 @@ public void testOpenTelemetryJavaInstrumentation() throws IOException, URISyntax final BuildResult buildResult = TestUtils.createGradleRunner() .withProjectDir(opentelemetryProjectRoot) - .withArguments("-q", "-Potel.stable=true", "-Dorg.gradle.java.home=" + JDK17_DIR, "publish", "-x", "test", "-x", - "spotlessCheck", "-x", "checkstyleMain", "-x", "javadoc") + .withArguments("-q", "-Potel.stable=true", "-Dorg.gradle.java.home=" + JDK17_DIR, + "--no-parallel", ":bom:publish") + // "publish", "-x", "test", "-x", "spotlessCheck", "-x", "checkstyleMain", "-x", "javadoc") .forwardOutput() .withDebug(false) .withPluginClasspath() @@ -69,7 +70,7 @@ public void testOpenTelemetryJavaInstrumentation() throws IOException, URISyntax assertThat(buildResult.task(":bom:publish").getOutcome()).isEqualTo(TaskOutcome.SUCCESS); assertThat(new File(publishDirectory, - "io/opentelemetry/javaagent/opentelemetry-javaagent/2.5.0.redhat-00001/opentelemetry-javaagent-2.5.0.redhat-00001.jar")) + "io/opentelemetry/instrumentation/opentelemetry-instrumentation-bom/2.5.0.redhat-00001/opentelemetry-instrumentation-bom-2.5.0.redhat-00001.pom")) .exists(); } }