[TEST] better failure message when back location is missing

This commit is contained in:
Shay Banon 2014-08-04 12:50:37 +02:00
parent c8cc59df57
commit 5795e4fbd7
1 changed files with 3 additions and 0 deletions

View File

@ -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());
}