You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by sa...@apache.org on 2012/09/25 20:45:32 UTC
svn commit: r1390046 -
/lucene/dev/branches/lucene_solr_4_0/dev-tools/scripts/smokeTestRelease.py
Author: sarowe
Date: Tue Sep 25 18:45:31 2012
New Revision: 1390046
URL: http://svn.apache.org/viewvc?rev=1390046&view=rev
Log:
- properly indent 'unpack ...' message at the top of unpack() (was indented one too many levels)
- When testing the Solr example with the binary Solr distributions (.tgz and .zip), start with a clean copy of the unpacked distribution for each JVM to be tested with
Modified:
lucene/dev/branches/lucene_solr_4_0/dev-tools/scripts/smokeTestRelease.py
Modified: lucene/dev/branches/lucene_solr_4_0/dev-tools/scripts/smokeTestRelease.py
URL: http://svn.apache.org/viewvc/lucene/dev/branches/lucene_solr_4_0/dev-tools/scripts/smokeTestRelease.py?rev=1390046&r1=1390045&r2=1390046&view=diff
==============================================================================
--- lucene/dev/branches/lucene_solr_4_0/dev-tools/scripts/smokeTestRelease.py (original)
+++ lucene/dev/branches/lucene_solr_4_0/dev-tools/scripts/smokeTestRelease.py Tue Sep 25 18:45:31 2012
@@ -404,7 +404,7 @@ def unpack(project, tmpDir, artifact, ve
shutil.rmtree(destDir)
os.makedirs(destDir)
os.chdir(destDir)
- print(' unpack %s...' % artifact)
+ print(' unpack %s...' % artifact)
unpackLogFile = '%s/%s-unpack-%s.log' % (tmpDir, project, artifact)
if artifact.endswith('.tar.gz') or artifact.endswith('.tgz'):
run('tar xzf %s/%s' % (tmpDir, artifact), unpackLogFile)
@@ -533,11 +533,25 @@ def verifyUnpacked(project, artifact, un
if project == 'lucene':
testDemo(isSrc, version)
else:
+ print(' copying unpacked distribution for Java 6 ...')
+ java6UnpackPath = '%s-java6' %unpackPath
+ if os.path.exists(java6UnpackPath):
+ shutil.rmtree(java6UnpackPath)
+ shutil.copytree(unpackPath, java6UnpackPath)
+ os.chdir(java6UnpackPath)
print(' test solr example w/ Java 6...')
- testSolrExample(unpackPath, JAVA6_HOME, False)
+ testSolrExample(java6UnpackPath, JAVA6_HOME, False)
+ print(' copying unpacked distribution for Java 7 ...')
+ java7UnpackPath = '%s-java7' %unpackPath
+ if os.path.exists(java7UnpackPath):
+ shutil.rmtree(java7UnpackPath)
+ shutil.copytree(unpackPath, java7UnpackPath)
+ os.chdir(java7UnpackPath)
print(' test solr example w/ Java 7...')
- testSolrExample(unpackPath, JAVA7_HOME, False)
+ testSolrExample(java7UnpackPath, JAVA7_HOME, False)
+
+ os.chdir(unpackPath)
testChangesText('.', version, project)