LUCENE-4429: smokeTestRelease requires version is format X.Y.Z[-ALPHA|-BETA]

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1390163 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Michael McCandless 2012-09-25 21:37:31 +00:00
parent fea15e75a4
commit 7152625e73
2 changed files with 7 additions and 1 deletions

View File

@ -249,7 +249,7 @@
<property name="python32.exe" value="python3.2" />
<property name="fakeRelease" value="lucene/build/fakeRelease"/>
<property name="fakeReleaseTmp" value="lucene/build/fakeReleaseTmp"/>
<property name="fakeReleaseVersion" value="5.0"/> <!-- *not* -SNAPSHOT, the real version -->
<property name="fakeReleaseVersion" value="5.0.0"/> <!-- *not* -SNAPSHOT, the real version -->
<target name="nightly-smoke" description="Builds an unsigned release and smoke tests it" depends="clean">
<sequential>

View File

@ -1106,6 +1106,8 @@ def crawl(downloadedFiles, urlString, targetDir, exclusions=set()):
downloadedFiles.append(path)
sys.stdout.write('.')
reAllowedVersion = re.compile(r'^\d+\.\d+\.\d+(-ALPHA|-BETA)?$')
def main():
if len(sys.argv) < 4:
@ -1116,6 +1118,10 @@ def main():
baseURL = sys.argv[1]
version = sys.argv[2]
if not reAllowedVersion.match(version):
raise RuntimeError('version "%s" does not match format X.Y.Z[-ALPHA|-BETA]' % version)
tmpDir = os.path.abspath(sys.argv[3])
isSigned = True
if len(sys.argv) == 5: