You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@solr.apache.org by ho...@apache.org on 2023/06/26 17:52:16 UTC

[solr] branch main updated: Fix example usage in smoke tester

This is an automated email from the ASF dual-hosted git repository.

houston pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/solr.git


The following commit(s) were added to refs/heads/main by this push:
     new eed71f154dd Fix example usage in smoke tester
eed71f154dd is described below

commit eed71f154dd8e1ff485370d47afb9985c0f68816
Author: Houston Putman <ho...@apache.org>
AuthorDate: Mon Jun 26 13:51:54 2023 -0400

    Fix example usage in smoke tester
---
 dev-tools/scripts/smokeTestRelease.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/dev-tools/scripts/smokeTestRelease.py b/dev-tools/scripts/smokeTestRelease.py
index ccd38ba0b51..01e4a839429 100755
--- a/dev-tools/scripts/smokeTestRelease.py
+++ b/dev-tools/scripts/smokeTestRelease.py
@@ -744,7 +744,7 @@ def testSolrExample(binaryDistPath, javaPath):
   print('      Running techproducts example on port 8983 from %s' % binaryDistPath)
   try:
     if not cygwin:
-      runExampleStatus = subprocess.call(['bin/solr','-e','techproducts'])
+      runExampleStatus = subprocess.call(['bin/solr','start','-e','techproducts'])
     else:
       runExampleStatus = subprocess.call('env "PATH=`cygpath -S -w`:$PATH" bin/solr.cmd -e techproducts', shell=True)
 
@@ -756,7 +756,7 @@ def testSolrExample(binaryDistPath, javaPath):
     run('sh ./exampledocs/test_utf8.sh http://localhost:8983/solr/techproducts', 'utf8.log')
     print('      run query...')
     s = load('http://localhost:8983/solr/techproducts/select/?q=video')
-    if s.find('"numFound":3,"start":0') == -1:
+    if s.find('"numFound":3') == -1:
       print('FAILED: response is:\n%s' % s)
       raise RuntimeError('query on solr example instance failed')
     s = load('http://localhost:8983/api/cores')