From a5127bb6b059eadc857599e19c4afc4ac6752c59 Mon Sep 17 00:00:00 2001 From: Robert Muir Date: Fri, 18 Sep 2015 00:16:01 -0400 Subject: [PATCH] Fix intellij test logging --- .../org/elasticsearch/bootstrap/BootstrapForTesting.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/core/src/test/java/org/elasticsearch/bootstrap/BootstrapForTesting.java b/core/src/test/java/org/elasticsearch/bootstrap/BootstrapForTesting.java index 5b2d9de9af6..1d7aabe7d34 100644 --- a/core/src/test/java/org/elasticsearch/bootstrap/BootstrapForTesting.java +++ b/core/src/test/java/org/elasticsearch/bootstrap/BootstrapForTesting.java @@ -114,6 +114,11 @@ public class BootstrapForTesting { // in case we get fancy and use the -integration goals later: perms.add(new FilePermission(coverageDir.resolve("jacoco-it.exec").toString(), "read,write")); } + // intellij hack: intellij test runner wants setIO and will + // screw up all test logging without it! + if (System.getProperty("tests.maven") == null) { + perms.add(new RuntimePermission("setIO")); + } final Policy policy; // if its a plugin with special permissions, we use a wrapper policy impl to try