Skip to content

armgit / solr

Public Imported from GitHub
0

Apache Solr open-source search software

SOLR-13268: Clean up any test failures resulting from defaulting to async logging. Fix precommit test to not include the baseDir

Erick Erickson3a1603dab349
diff --git a/lucene/tools/src/groovy/check-source-patterns.groovy b/lucene/tools/src/groovy/check-source-patterns.groovy
index e2dfb302db6..f0007eac88e 100644
--- a/lucene/tools/src/groovy/check-source-patterns.groovy
+++ b/lucene/tools/src/groovy/check-source-patterns.groovy
@@ -181,7 +181,8 @@ ant.fileScanner{
if (f.name.contains("Test")) {
checkMockitoAssume(f, text);
}
- if (f.path.contains("solr/") && f.name.equals("SolrTestCase.java") == false) {
+
+ if (f.path.substring(baseDirLen).contains("solr/") && f.name.equals("SolrTestCase.java") == false) {
if (extendsLuceneTestCasePattern.matcher(text).find()) {
reportViolation(f, "Solr test cases should extend SolrTestCase rather than LuceneTestCase");
}