From e9e4d4832e227b9712c2d51a8c7e823cc126978d Mon Sep 17 00:00:00 2001 From: George Gastaldi Date: Thu, 2 Sep 2021 22:18:02 -0300 Subject: [PATCH] Test execution message is now copy/paste friendly The "Executing" message shown in the ArtifactLauncher implementations now allows you to copy/paste the command easily --- .../io/quarkus/test/common/DefaultDockerContainerLauncher.java | 2 +- .../main/java/io/quarkus/test/common/DefaultJarLauncher.java | 2 +- .../java/io/quarkus/test/common/DefaultNativeImageLauncher.java | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/test-framework/common/src/main/java/io/quarkus/test/common/DefaultDockerContainerLauncher.java b/test-framework/common/src/main/java/io/quarkus/test/common/DefaultDockerContainerLauncher.java index 2fa691ad88a10..25bee7ee66de8 100644 --- a/test-framework/common/src/main/java/io/quarkus/test/common/DefaultDockerContainerLauncher.java +++ b/test-framework/common/src/main/java/io/quarkus/test/common/DefaultDockerContainerLauncher.java @@ -104,7 +104,7 @@ public void start() throws IOException { Files.deleteIfExists(logFile); Files.createDirectories(logFile.getParent()); - System.out.println("Executing " + args); + System.out.println("Executing \"" + String.join(" ", args) + "\""); Function startedFunction = createStartedFunction(); diff --git a/test-framework/common/src/main/java/io/quarkus/test/common/DefaultJarLauncher.java b/test-framework/common/src/main/java/io/quarkus/test/common/DefaultJarLauncher.java index a90a4d30b4428..c5b0df5c7b765 100644 --- a/test-framework/common/src/main/java/io/quarkus/test/common/DefaultJarLauncher.java +++ b/test-framework/common/src/main/java/io/quarkus/test/common/DefaultJarLauncher.java @@ -66,7 +66,7 @@ public void start() throws IOException { args.add("-jar"); args.add(jarPath.toAbsolutePath().toString()); - System.out.println("Executing " + args); + System.out.println("Executing \"" + String.join(" ", args) + "\""); Files.deleteIfExists(logFile); Files.createDirectories(logFile.getParent()); diff --git a/test-framework/common/src/main/java/io/quarkus/test/common/DefaultNativeImageLauncher.java b/test-framework/common/src/main/java/io/quarkus/test/common/DefaultNativeImageLauncher.java index 584d8f9ca73cc..0f95cf6a3778c 100644 --- a/test-framework/common/src/main/java/io/quarkus/test/common/DefaultNativeImageLauncher.java +++ b/test-framework/common/src/main/java/io/quarkus/test/common/DefaultNativeImageLauncher.java @@ -96,7 +96,7 @@ public void start() throws IOException { args.add("-D" + e.getKey() + "=" + e.getValue()); } - System.out.println("Executing " + args); + System.out.println("Executing \"" + String.join(" ", args) + "\""); Files.deleteIfExists(logFile); Files.createDirectories(logFile.getParent());