You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@geode.apache.org by lg...@apache.org on 2017/09/13 00:00:21 UTC

[geode] 01/01: GEODE-3185: Fixes CI failures in windows in org.apache.geode.internal.cache.BackupJUnitTest

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

lgallinat pushed a commit to branch feature/GEODE-3185-2
in repository https://gitbox.apache.org/repos/asf/geode.git

commit a5c67bae8546fd66dbb2b374015e34196a713d66
Author: Lynn Gallinat <lg...@pivotal.io>
AuthorDate: Tue Sep 12 16:56:49 2017 -0700

    GEODE-3185: Fixes CI failures in windows in org.apache.geode.internal.cache.BackupJUnitTest
    
    The windows restore script now cds to the directory containing the script.
    This makes the windows restore script similar to the unix restore script
    The restore script uses relative path names, so the cd is required for it to work.
---
 .../java/org/apache/geode/internal/cache/persistence/RestoreScript.java  | 1 +
 1 file changed, 1 insertion(+)

diff --git a/geode-core/src/main/java/org/apache/geode/internal/cache/persistence/RestoreScript.java b/geode-core/src/main/java/org/apache/geode/internal/cache/persistence/RestoreScript.java
index 3076e04..b23bce6 100644
--- a/geode-core/src/main/java/org/apache/geode/internal/cache/persistence/RestoreScript.java
+++ b/geode-core/src/main/java/org/apache/geode/internal/cache/persistence/RestoreScript.java
@@ -163,6 +163,7 @@ public class RestoreScript {
 
     public void writePreamble(PrintWriter writer) {
       writer.println("echo off");
+      writer.println("cd %~dp0");
     }
 
     public void writeComment(PrintWriter writer, String string) {

-- 
To stop receiving notification emails like this one, please contact
"commits@geode.apache.org" <co...@geode.apache.org>.