diff --git a/testsuite/integration-arquillian/tests/base/src/main/java/org/keycloak/testsuite/cli/exec/AbstractExec.java b/testsuite/integration-arquillian/tests/base/src/main/java/org/keycloak/testsuite/cli/exec/AbstractExec.java index 91fcb1318d..b5476b5aa4 100644 --- a/testsuite/integration-arquillian/tests/base/src/main/java/org/keycloak/testsuite/cli/exec/AbstractExec.java +++ b/testsuite/integration-arquillian/tests/base/src/main/java/org/keycloak/testsuite/cli/exec/AbstractExec.java @@ -14,6 +14,7 @@ import java.io.OutputStream; import java.util.ArrayList; import java.util.List; import java.util.concurrent.TimeUnit; +import java.util.stream.Collectors; /** * @author Marko Strukelj @@ -181,7 +182,11 @@ public abstract class AbstractExec { } public List stderrLines() { - return parseStreamAsLines(new ByteArrayInputStream(stderr.toByteArray())); + return filterAgentsOutput(parseStreamAsLines(new ByteArrayInputStream(stderr.toByteArray()))); + } + + public static List filterAgentsOutput(List lines) { + return lines.stream().filter(line -> !line.contains("JAVA_TOOL_OPTIONS")).collect(Collectors.toList()); } public String stderrString() {