mirror of https://github.com/apache/lucene.git
call rmDir() up front to prevent confusing false-positive failures from backwards compatibility unit test
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@518090 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
d4e406ad22
commit
4648912089
|
@ -257,6 +257,8 @@ public class TestBackwardsCompatibility extends TestCase
|
|||
|
||||
public void createIndex(String dirName, boolean doCFS) throws IOException {
|
||||
|
||||
rmDir(dirName);
|
||||
|
||||
dirName = fullDir(dirName);
|
||||
|
||||
Directory dir = FSDirectory.getDirectory(dirName);
|
||||
|
@ -287,6 +289,7 @@ public class TestBackwardsCompatibility extends TestCase
|
|||
for(int pass=0;pass<2;pass++) {
|
||||
|
||||
String outputDir = "lucene.backwardscompat0.index";
|
||||
rmDir(outputDir);
|
||||
|
||||
try {
|
||||
Directory dir = FSDirectory.getDirectory(fullDir(outputDir));
|
||||
|
|
Loading…
Reference in New Issue