[java-idp-integration-tests] 03/03: Log stderr to stdout when running CLI programs

Tom Zeller tzeller at dragonacea.biz
Sat Sep 14 18:19:53 UTC 2024


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=d1e53a2224be9f7e6a71cd167f5b0e081a35b307

commit d1e53a2224be9f7e6a71cd167f5b0e081a35b307
Author: Tom Zeller <tzeller at dragonacea.biz>
AuthorDate: Sat Sep 14 13:17:56 2024 -0500

    Log stderr to stdout when running CLI programs
---
 .../net/shibboleth/idp/integration/tests/BaseIntegrationTest.java   | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/src/test/java/net/shibboleth/idp/integration/tests/BaseIntegrationTest.java b/src/test/java/net/shibboleth/idp/integration/tests/BaseIntegrationTest.java
index 9a69415..c7fac2f 100644
--- a/src/test/java/net/shibboleth/idp/integration/tests/BaseIntegrationTest.java
+++ b/src/test/java/net/shibboleth/idp/integration/tests/BaseIntegrationTest.java
@@ -2433,6 +2433,7 @@ public abstract class BaseIntegrationTest {
         final Process process = new ProcessBuilder() //
                 .command(commands)
                 .directory(idpHome)
+                .redirectErrorStream(true)
                 .start();
 
         logProcess(process, "module :");
@@ -2641,7 +2642,7 @@ public abstract class BaseIntegrationTest {
         // Run installer from idp distribution directory
         final ProcessBuilder installerBuilder = new ProcessBuilder();
         installerBuilder.directory(pathToIdPDist.toFile());
-        installerBuilder.redirectErrorStream();
+        installerBuilder.redirectErrorStream(true);
         final List<String> installerCommands = new ArrayList<String>();
         if (isWindows()) {
             final Path pathToInstallBat = pathToIdPDist.resolve(Paths.get("bin", "install.bat"));
@@ -2936,6 +2937,7 @@ public abstract class BaseIntegrationTest {
         final Process process = new ProcessBuilder() //
                 .command(commands)
                 .directory(idpHome)
+                .redirectErrorStream(true)
                 .start();
 
         logProcess(process, "Install plugin :");
@@ -3004,6 +3006,7 @@ public abstract class BaseIntegrationTest {
         final Process process = new ProcessBuilder() //
                 .command(commands)
                 .directory(idpHome)
+                .redirectErrorStream(true)
                 .start();
 
         logProcess(process, "Remove plugin :");
@@ -3055,6 +3058,7 @@ public abstract class BaseIntegrationTest {
         final Process process = new ProcessBuilder() //
                 .command(commands)
                 .directory(idpHome)
+                .redirectErrorStream(true)
                 .start();
 
         logProcess(process, "Install local plugin :");

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the commits mailing list