[TEST] better failure message when back location is missing
This commit is contained in:
parent
c8cc59df57
commit
5795e4fbd7
|
@ -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());
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue