LUCENE-5822 fix smoke test for renamed README

This commit is contained in:
Mike Drob 2017-06-30 16:22:37 -05:00
parent 2e56e7eb28
commit 5b484806a0
2 changed files with 8 additions and 4 deletions

Binary file not shown.

View File

@ -644,10 +644,14 @@ def verifyUnpacked(java, project, artifact, unpackPath, gitRevision, version, te
textFiles.append('BUILD') textFiles.append('BUILD')
for fileName in textFiles: for fileName in textFiles:
fileName += '.txt' fileNameTxt = fileName + '.txt'
if fileName not in l: fileNameMd = fileName + '.md'
raise RuntimeError('file "%s" is missing from artifact %s' % (fileName, artifact)) if fileNameTxt in l:
l.remove(fileName) l.remove(fileNameTxt)
elif fileNameMd in l:
l.remove(fileNameMd)
else:
raise RuntimeError('file "%s".[txt|md] is missing from artifact %s' % (fileName, artifact))
if project == 'lucene': if project == 'lucene':
if LUCENE_NOTICE is None: if LUCENE_NOTICE is None: