[java-idp-integration-tests] branch main updated: Workaround Maven Surefire Plugin issue
Tom Zeller
tzeller at dragonacea.biz
Tue Mar 8 22:47:45 UTC 2022
This is an automated email from the git hooks/post-receive script.
tzeller pushed a commit to branch main
in repository java-idp-integration-tests.
View the commit online:
http://git.shibboleth.net/view/?p=java-idp-integration-tests.git;a=commit;h=0bce3ed26c295895d35863941ed484fdc3449c35
The following commit(s) were added to refs/heads/main by this push:
new 0bce3ed Workaround Maven Surefire Plugin issue
0bce3ed is described below
commit 0bce3ed26c295895d35863941ed484fdc3449c35
Author: Tom Zeller <tzeller at dragonacea.biz>
AuthorDate: Tue Mar 8 16:47:34 2022 -0600
Workaround Maven Surefire Plugin issue
The Maven Surefire Plugin appears to freeze the JVM when running the
integration tests with Jetty 10.
Relevant issue is here :
https://issues.apache.org/jira/browse/SUREFIRE-1881
Apparently the JVM hangs if anything writes to stdout or stderr in the
Java Process used to start Jetty.
---
src/test/java/net/shibboleth/idp/test/AbstractServerProcess.java | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/src/test/java/net/shibboleth/idp/test/AbstractServerProcess.java b/src/test/java/net/shibboleth/idp/test/AbstractServerProcess.java
index 2b411ef..4d83c7b 100644
--- a/src/test/java/net/shibboleth/idp/test/AbstractServerProcess.java
+++ b/src/test/java/net/shibboleth/idp/test/AbstractServerProcess.java
@@ -18,6 +18,7 @@
package net.shibboleth.idp.test;
import java.io.IOException;
+import java.lang.ProcessBuilder.Redirect;
import java.net.ConnectException;
import java.nio.file.Path;
import java.nio.file.Paths;
@@ -268,6 +269,9 @@ public class AbstractServerProcess extends AbstractInitializableComponent implem
processBuilder.command(buildCommands());
log.debug("Will start server using command '{}'", processBuilder.command());
final Stopwatch stopwatch = Stopwatch.createStarted();
+ // Workaround Maven Surefire Plugin freeze if Jetty 10 writes to stdout or stderr
+ processBuilder.redirectOutput(Redirect.INHERIT);
+ processBuilder.redirectError(Redirect.INHERIT);
log.debug("Starting the server process");
process = processBuilder.start();
waitForStatusPage();
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the commits
mailing list