mirror of https://github.com/apache/lucene.git
print a warning in this test if it cant clean up (rather than silently leaving trash)
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@964856 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
4c23e64c08
commit
90ac856ea2
|
@ -125,7 +125,9 @@ public abstract class BaseDistributedSearchTestCase extends SolrTestCaseJ4 {
|
|||
@Override
|
||||
public void tearDown() throws Exception {
|
||||
destroyServers();
|
||||
AbstractSolrTestCase.recurseDelete(testDir);
|
||||
if (!AbstractSolrTestCase.recurseDelete(testDir)) {
|
||||
System.err.println("!!!! WARNING: best effort to remove " + testDir.getAbsolutePath() + " FAILED !!!!!");
|
||||
}
|
||||
super.tearDown();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue