lucene-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sha...@apache.org
Subject [36/53] [abbrv] lucene-solr:feature/autoscaling: LUCENE-5822 fix smoke test for renamed README
Date Tue, 04 Jul 2017 01:23:56 GMT
LUCENE-5822 fix smoke test for renamed README


Project: http://git-wip-us.apache.org/repos/asf/lucene-solr/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucene-solr/commit/5b484806
Tree: http://git-wip-us.apache.org/repos/asf/lucene-solr/tree/5b484806
Diff: http://git-wip-us.apache.org/repos/asf/lucene-solr/diff/5b484806

Branch: refs/heads/feature/autoscaling
Commit: 5b484806a07e6bb4888c4c704de4eee891d76910
Parents: 2e56e7e
Author: Mike Drob <mdrob@apache.org>
Authored: Fri Jun 30 16:22:37 2017 -0500
Committer: Mike Drob <mdrob@apache.org>
Committed: Sat Jul 1 16:10:51 2017 -0700

----------------------------------------------------------------------
 dev-tools/scripts/.smokeTestRelease.py.swp | Bin 0 -> 16384 bytes
 dev-tools/scripts/smokeTestRelease.py      |  12 ++++++++----
 2 files changed, 8 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/5b484806/dev-tools/scripts/.smokeTestRelease.py.swp
----------------------------------------------------------------------
diff --git a/dev-tools/scripts/.smokeTestRelease.py.swp b/dev-tools/scripts/.smokeTestRelease.py.swp
new file mode 100644
index 0000000..3c5acb1
Binary files /dev/null and b/dev-tools/scripts/.smokeTestRelease.py.swp differ

http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/5b484806/dev-tools/scripts/smokeTestRelease.py
----------------------------------------------------------------------
diff --git a/dev-tools/scripts/smokeTestRelease.py b/dev-tools/scripts/smokeTestRelease.py
index 84978bb..1083a09 100644
--- a/dev-tools/scripts/smokeTestRelease.py
+++ b/dev-tools/scripts/smokeTestRelease.py
@@ -644,10 +644,14 @@ def verifyUnpacked(java, project, artifact, unpackPath, gitRevision,
version, te
       textFiles.append('BUILD')
 
   for fileName in textFiles:
-    fileName += '.txt'
-    if fileName not in l:
-      raise RuntimeError('file "%s" is missing from artifact %s' % (fileName, artifact))
-    l.remove(fileName)
+    fileNameTxt = fileName + '.txt'
+    fileNameMd = fileName + '.md'
+    if fileNameTxt in l:
+      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 LUCENE_NOTICE is None:


Mime
View raw message