From 5795e4fbd7bbd02a5f8905b8c756c1c22d89a03a Mon Sep 17 00:00:00 2001 From: Shay Banon Date: Mon, 4 Aug 2014 12:50:37 +0200 Subject: [PATCH] [TEST] better failure message when back location is missing --- .../test/ElasticsearchBackwardsCompatIntegrationTest.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/test/java/org/elasticsearch/test/ElasticsearchBackwardsCompatIntegrationTest.java b/src/test/java/org/elasticsearch/test/ElasticsearchBackwardsCompatIntegrationTest.java index e317687ed77..8a2aa6c839c 100644 --- a/src/test/java/org/elasticsearch/test/ElasticsearchBackwardsCompatIntegrationTest.java +++ b/src/test/java/org/elasticsearch/test/ElasticsearchBackwardsCompatIntegrationTest.java @@ -89,6 +89,9 @@ public abstract class ElasticsearchBackwardsCompatIntegrationTest extends Elasti throw new IllegalArgumentException("Invalid Backwards tests location path:" + path + " version: " + version); } File file = new File(path, "elasticsearch-" + version); + if (!file.exists()) { + throw new IllegalArgumentException("Backwards tests location is missing: " + file.getAbsolutePath()); + } if (!file.isDirectory()) { throw new IllegalArgumentException("Backwards tests location is not a directory: " + file.getAbsolutePath()); }