Skip to content

armgit / solr

Public Imported from GitHub
0

Apache Solr open-source search software

read both stderr and stdout from Solr example server

Michael McCandless44b883aff439
diff --git a/dev-tools/scripts/smokeTestRelease.py b/dev-tools/scripts/smokeTestRelease.py
index 502e49b785f..f97aca6179c 100644
--- a/dev-tools/scripts/smokeTestRelease.py
+++ b/dev-tools/scripts/smokeTestRelease.py
@@ -724,7 +724,7 @@ def readSolrOutput(p, startupEvent, failureEvent, logFile):
f = open(logFile, 'wb')
try:
while True:
- line = p.stderr.readline()
+ line = p.stdout.readline()
if len(line) == 0:
p.poll()
if not startupEvent.isSet():
@@ -758,7 +758,7 @@ def testSolrExample(unpackPath, javaPath, isSrc):
env.update(os.environ)
env['JAVA_HOME'] = javaPath
env['PATH'] = '%s/bin:%s' % (javaPath, env['PATH'])
- server = subprocess.Popen(['java', '-jar', 'start.jar'], stdout=subprocess.PIPE, stderr=subprocess.PIPE, stdin=subprocess.PIPE, env=env)
+ server = subprocess.Popen(['java', '-jar', 'start.jar'], stdout=subprocess.PIPE, stderr=subprocess.STDOUT, stdin=subprocess.PIPE, env=env)
startupEvent = threading.Event()
failureEvent = threading.Event()