You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@geode.apache.org by sa...@apache.org on 2018/08/06 21:26:18 UTC

[geode] branch feature/windows-debug-integration-tests updated: added debug statements to print command

This is an automated email from the ASF dual-hosted git repository.

sai_boorlagadda pushed a commit to branch feature/windows-debug-integration-tests
in repository https://gitbox.apache.org/repos/asf/geode.git


The following commit(s) were added to refs/heads/feature/windows-debug-integration-tests by this push:
     new 399c5b4  added debug statements to print command
399c5b4 is described below

commit 399c5b410e606103965593ca780193059b5b1a4e
Author: Sai Boorlagadda <sb...@pivotal.io>
AuthorDate: Mon Aug 6 14:26:04 2018 -0700

    added debug statements to print command
---
 .../distributed/ServerLauncherRemoteIntegrationTestCase.java      | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/geode-core/src/integrationTest/java/org/apache/geode/distributed/ServerLauncherRemoteIntegrationTestCase.java b/geode-core/src/integrationTest/java/org/apache/geode/distributed/ServerLauncherRemoteIntegrationTestCase.java
index 4ab3146..b1b4551 100644
--- a/geode-core/src/integrationTest/java/org/apache/geode/distributed/ServerLauncherRemoteIntegrationTestCase.java
+++ b/geode-core/src/integrationTest/java/org/apache/geode/distributed/ServerLauncherRemoteIntegrationTestCase.java
@@ -15,6 +15,7 @@
 package org.apache.geode.distributed;
 
 import static java.util.concurrent.TimeUnit.MINUTES;
+import static java.util.stream.Collectors.joining;
 import static org.apache.geode.distributed.ConfigurationProperties.LOG_LEVEL;
 import static org.apache.geode.distributed.ConfigurationProperties.MCAST_PORT;
 import static org.apache.geode.distributed.internal.DistributionConfig.GEMFIRE_PREFIX;
@@ -172,6 +173,9 @@ public abstract class ServerLauncherRemoteIntegrationTestCase
 
   private ServerLauncher awaitStart(final File workingDirectory) {
     try {
+      System.out.println(
+          "%%%%%%%% ServerLauncherRemoteIntegrationTestCase::awaitStart workingDirectory - "
+              + workingDirectory.getAbsolutePath());
       launcher = new ServerLauncher.Builder()
           .setWorkingDirectory(workingDirectory.getCanonicalPath()).build();
       awaitStart(launcher);
@@ -206,6 +210,8 @@ public abstract class ServerLauncherRemoteIntegrationTestCase
   }
 
   private void executeCommandWithReaders(final List<String> command) throws IOException {
+    System.out
+        .println(">>>>>>>> Command being executed - " + command.stream().collect(joining(",")));
     process = new ProcessBuilder(command).directory(getWorkingDirectory()).start();
     processOutReader = new ProcessStreamReader.Builder(process)
         .inputStream(process.getInputStream()).build().start();
@@ -215,6 +221,8 @@ public abstract class ServerLauncherRemoteIntegrationTestCase
 
   private void executeCommandWithReaders(final List<String> command,
       final InputListener outListener, final InputListener errListener) throws IOException {
+    System.out
+        .println(">>>>>>>> Command being executed - " + command.stream().collect(joining(",")));
     process = new ProcessBuilder(command).directory(getWorkingDirectory()).start();
     processOutReader = new ProcessStreamReader.Builder(process)
         .inputStream(process.getInputStream()).inputListener(outListener).build().start();