Skip to content

Apache Lucene open-source search software

LUCENE-4006: re-enable checking SYSTEM_REQUIREMENTS.txt for Solr

Michael McCandlessbfc75d60b7c8
diff --git a/dev-tools/scripts/smokeTestRelease.py b/dev-tools/scripts/smokeTestRelease.py
index cc72aabf147..8bb05b96403 100644
--- a/dev-tools/scripts/smokeTestRelease.py
+++ b/dev-tools/scripts/smokeTestRelease.py
@@ -581,6 +581,9 @@ def verifyUnpacked(project, artifact, unpackPath, version, tmpDir):
textFiles.extend(('JRE_VERSION_MIGRATION', 'CHANGES', 'MIGRATE', 'SYSTEM_REQUIREMENTS'))
if isSrc:
textFiles.append('BUILD')
+ elif not isSrc:
+ textFiles.append('SYSTEM_REQUIREMENTS')
+
for fileName in textFiles:
fileName += '.txt'
if fileName not in l:
@@ -629,10 +632,8 @@ def verifyUnpacked(project, artifact, unpackPath, version, tmpDir):
if project == 'lucene':
if len(l) > 0:
raise RuntimeError('%s: unexpected files/dirs in artifact %s: %s' % (project, artifact, l))
- else:
- # TODO: re-enable this check
- if False and not os.path.exists('%s/solr/SYSTEM_REQUIREMENTS.txt' % unpackPath):
- raise RuntimeError('%s: solr/SYSTEM_REQUIREMENTS.txt does not exist in artifact %s' % (project, artifact))
+ elif isSrc and not os.path.exists('%s/solr/SYSTEM_REQUIREMENTS.txt' % unpackPath):
+ raise RuntimeError('%s: solr/SYSTEM_REQUIREMENTS.txt does not exist in artifact %s' % (project, artifact))
if isSrc:
print(' make sure no JARs/WARs in src dist...')