mirror of https://github.com/apache/lucene.git
fix test for windows
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1482983 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
93d7c7ae6b
commit
b56b7edd50
|
@ -194,7 +194,7 @@ public class ZkCLITest extends SolrTestCaseJ4 {
|
|||
// filter out all directories starting with . (e.g. .svn)
|
||||
Collection<File> sourceFiles = FileUtils.listFiles(sourceConfDir, TrueFileFilter.INSTANCE, new RegexFileFilter("[^\\.].*"));
|
||||
for (File sourceFile :sourceFiles){
|
||||
int indexOfRelativePath = sourceFile.getAbsolutePath().lastIndexOf("collection1/conf");
|
||||
int indexOfRelativePath = sourceFile.getAbsolutePath().lastIndexOf("collection1" + File.separator + "conf");
|
||||
String relativePathofFile = sourceFile.getAbsolutePath().substring(indexOfRelativePath + 17, sourceFile.getAbsolutePath().length());
|
||||
File downloadedFile = new File(confDir,relativePathofFile);
|
||||
assertTrue(downloadedFile.getAbsolutePath() + " does not exist source:" + sourceFile.getAbsolutePath(), downloadedFile.exists());
|
||||
|
|
Loading…
Reference in New Issue