This is an automated email from the ASF dual-hosted git repository.
jensdeppe pushed a commit to branch feature/GEODE-5212
in repository https://gitbox.apache.org/repos/asf/geode.git
The following commit(s) were added to refs/heads/feature/GEODE-5212 by this
push:
new 319ac30 Add debug output for BackupIntegrationTest
319ac30 is described below
commit 319ac30fc8fcf7e6eeeb2477e825f2f7d5b1fa70
Author: Jens Deppe <[email protected]>
AuthorDate: Thu Jul 26 10:24:19 2018 -0700
Add debug output for BackupIntegrationTest
---
ci/scripts/test-run.sh | 4 ++++
.../apache/geode/internal/cache/backup/BackupIntegrationTest.java | 5 +++++
2 files changed, 9 insertions(+)
diff --git a/ci/scripts/test-run.sh b/ci/scripts/test-run.sh
index 898edfe..916f879 100755
--- a/ci/scripts/test-run.sh
+++ b/ci/scripts/test-run.sh
@@ -145,6 +145,10 @@ pushd ${GEODE_BUILD}
echo "Running tests"
set -x
+ if [ "${GRADLE_TASK}" = "integrationTest" ]; then
+ GRADLE_TASK="geode-core:integrationTest --tests BackupIntegrationTest"
+ fi
+
# ./gradlew --no-daemon -x javadoc -x spotlessCheck
:geode-assembly:acceptanceTest --tests
org.apache.geode.management.internal.cli.commands.PutCommandWithJsonTest
./gradlew ${PARALLEL_DUNIT} ${DUNIT_PARALLEL_FORKS} ${DUNIT_DOCKER_IMAGE} \
--system-prop "java.io.tmpdir=${TMPDIR}" ${DEFAULT_GRADLE_TASK_OPTIONS}
${GRADLE_TASK_OPTIONS} ${GRADLE_TASK}
diff --git
a/geode-core/src/integrationTest/java/org/apache/geode/internal/cache/backup/BackupIntegrationTest.java
b/geode-core/src/integrationTest/java/org/apache/geode/internal/cache/backup/BackupIntegrationTest.java
index 26f6b68..0a2b6ce 100644
---
a/geode-core/src/integrationTest/java/org/apache/geode/internal/cache/backup/BackupIntegrationTest.java
+++
b/geode-core/src/integrationTest/java/org/apache/geode/internal/cache/backup/BackupIntegrationTest.java
@@ -31,6 +31,7 @@ import java.io.InputStream;
import java.io.InputStreamReader;
import java.net.URISyntaxException;
import java.net.URL;
+import java.nio.file.Files;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collection;
@@ -385,6 +386,10 @@ public class BackupIntegrationTest {
List<String> command = new ArrayList<>();
System.out.println("EXECUTING:" + script.getCanonicalPath());
+
+ List<String> scriptContent = Files.readAllLines(script.toPath());
+ scriptContent.forEach(i -> System.out.println("CONTENT: " + i));
+
boolean isWindows = script.getName().endsWith("bat");
if (isWindows) {
command.add("cmd.exe");