Skip to content

Commit fbe0b99

Browse files
committed
Drop duplicate log output in ITs
It was introduced in quarkusio#51081 as a workaround but we have now reinstated proper log output in the ITs, so we don't need that anymore. Related to quarkusio#52465 and quarkusio#52403 and quarkusio#52382.
1 parent c671a81 commit fbe0b99

File tree

3 files changed

+0
-13
lines changed

3 files changed

+0
-13
lines changed

test-framework/common/src/main/java/io/quarkus/test/common/DefaultJarLauncher.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,6 @@ public void includeAsSysProps(Map<String, String> systemProps) {
184184

185185
@Override
186186
public void close() {
187-
LauncherUtil.toStdOut(logFile);
188187
LauncherUtil.destroyProcess(quarkusProcess);
189188
if (generateAotFile) {
190189
Path aotConfFile = jarPath.resolveSibling(AOT_CONF_FILE_NAME);

test-framework/common/src/main/java/io/quarkus/test/common/DefaultNativeImageLauncher.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,6 @@ public void includeAsSysProps(Map<String, String> systemProps) {
261261

262262
@Override
263263
public void close() {
264-
LauncherUtil.toStdOut(logFile);
265264
LauncherUtil.destroyProcess(quarkusProcess);
266265
}
267266
}

test-framework/common/src/main/java/io/quarkus/test/common/LauncherUtil.java

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
import java.io.IOException;
1010
import java.io.InputStream;
1111
import java.io.OutputStream;
12-
import java.nio.charset.StandardCharsets;
1312
import java.nio.file.Files;
1413
import java.nio.file.Path;
1514
import java.time.Duration;
@@ -231,16 +230,6 @@ static IntegrationTestStartedNotifier.Result waitForStartedFunction(
231230
return result;
232231
}
233232

234-
static void toStdOut(Path log) {
235-
if (log != null) {
236-
try (var r = Files.newBufferedReader(log, StandardCharsets.UTF_8)) {
237-
r.lines().forEach(System.out::println);
238-
} catch (IOException ignored) {
239-
System.err.println("Unable to write process output");
240-
}
241-
}
242-
}
243-
244233
/**
245234
* Thread that reads a process output file looking for the line that indicates the address the application
246235
* is listening on.

0 commit comments

Comments
 (0)