From 6cdcc805cccb22b5eededed93e1e728dabf35084 Mon Sep 17 00:00:00 2001 From: Robert Muir Date: Thu, 10 Sep 2015 14:59:23 -0400 Subject: [PATCH] hack jython tests to work on windows windows needs access to the "root" holding the jar file (see https://github.com/int3/jython/blob/master/src/org/python/core/PySystemState.java#L571-L616) Its different on windows, because when canonicalizing the file (case sensitivity), it needs access to the file. Closes #13476 --- .../java/org/elasticsearch/bootstrap/BootstrapForTesting.java | 1 + 1 file changed, 1 insertion(+) diff --git a/core/src/test/java/org/elasticsearch/bootstrap/BootstrapForTesting.java b/core/src/test/java/org/elasticsearch/bootstrap/BootstrapForTesting.java index a779db2326b..3220cef5b28 100644 --- a/core/src/test/java/org/elasticsearch/bootstrap/BootstrapForTesting.java +++ b/core/src/test/java/org/elasticsearch/bootstrap/BootstrapForTesting.java @@ -97,6 +97,7 @@ public class BootstrapForTesting { String filename = path.getFileName().toString(); if (filename.contains("jython") && filename.endsWith(".jar")) { // just enough so it won't fail when it does not exist + perms.add(new FilePermission(path.getParent().toString(), "read,readlink")); perms.add(new FilePermission(path.getParent().resolve("Lib").toString(), "read,readlink")); } }