mirror of https://github.com/apache/lucene.git
kill Solr example server if it hasn't started after 30 minutes
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1463057 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
1f964c5764
commit
5d8cc29da9
|
@ -766,9 +766,12 @@ def testSolrExample(unpackPath, javaPath, isSrc):
|
||||||
serverThread.setDaemon(True)
|
serverThread.setDaemon(True)
|
||||||
serverThread.start()
|
serverThread.start()
|
||||||
|
|
||||||
|
try:
|
||||||
|
|
||||||
# Make sure Solr finishes startup:
|
# Make sure Solr finishes startup:
|
||||||
if not startupEvent.wait(1800):
|
if not startupEvent.wait(1800):
|
||||||
raise RuntimeError('startup took more than 30 minutes')
|
raise RuntimeError('startup took more than 30 minutes')
|
||||||
|
|
||||||
if failureEvent.isSet():
|
if failureEvent.isSet():
|
||||||
logFile = os.path.abspath(logFile)
|
logFile = os.path.abspath(logFile)
|
||||||
print
|
print
|
||||||
|
@ -778,7 +781,6 @@ def testSolrExample(unpackPath, javaPath, isSrc):
|
||||||
|
|
||||||
print(' startup done')
|
print(' startup done')
|
||||||
|
|
||||||
try:
|
|
||||||
print(' test utf8...')
|
print(' test utf8...')
|
||||||
run('sh ./exampledocs/test_utf8.sh', 'utf8.log')
|
run('sh ./exampledocs/test_utf8.sh', 'utf8.log')
|
||||||
print(' index example docs...')
|
print(' index example docs...')
|
||||||
|
|
Loading…
Reference in New Issue