You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@solr.apache.org by ep...@apache.org on 2024/07/21 07:15:45 UTC

(solr) 01/02: Update to match SolrCLI.printToolHelp formatting rules (#2573)

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

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

commit 2b972020ae91a9622e39ca5d12af93d1e2562bc8
Author: Eric Pugh <ep...@opensourceconnections.com>
AuthorDate: Sat Jul 20 19:26:08 2024 +0200

    Update to match SolrCLI.printToolHelp formatting rules (#2573)
---
 solr/packaging/test/test_help.bats | 12 ++++++------
 solr/packaging/test/test_post.bats |  4 ++--
 2 files changed, 8 insertions(+), 8 deletions(-)

diff --git a/solr/packaging/test/test_help.bats b/solr/packaging/test/test_help.bats
index 3f57970d745..ca64b4da9e9 100644
--- a/solr/packaging/test/test_help.bats
+++ b/solr/packaging/test/test_help.bats
@@ -52,25 +52,25 @@ setup() {
 
 @test "healthcheck help flag prints help" {
   run solr healthcheck --help
-  assert_output --partial 'Usage: solr healthcheck'
+  assert_output --partial 'usage: bin/solr healthcheck'
   refute_output --partial 'ERROR'
 }
 
 @test "create help flag prints help" {
   run solr create --help
-  assert_output --partial 'usage: create'
+  assert_output --partial 'usage: bin/solr create'
   refute_output --partial 'ERROR'
 }
 
 @test "delete help flag prints help" {
   run solr delete -h
-  assert_output --partial 'usage: delete'
+  assert_output --partial 'usage: bin/solr delete'
   refute_output --partial 'ERROR'
 }
 
 @test "version help flag prints help" {
   run solr version -h
-  assert_output --partial 'usage: version'
+  assert_output --partial 'usage: bin/solr version'
   refute_output --partial 'ERROR'
 }
 
@@ -88,12 +88,12 @@ setup() {
 
 @test "assert help flag prints help" {
   run solr assert --help
-  assert_output --partial 'usage: assert'
+  assert_output --partial 'usage: bin/solr assert'
   refute_output --partial 'ERROR'
 }
 
 @test "post help flag prints help" {
   run solr post --help
-  assert_output --partial 'usage: post'
+  assert_output --partial 'usage: bin/solr post'
   refute_output --partial 'ERROR'
 }
diff --git a/solr/packaging/test/test_post.bats b/solr/packaging/test/test_post.bats
index 023cefa5a66..bb9b2e6cb1a 100644
--- a/solr/packaging/test/test_post.bats
+++ b/solr/packaging/test/test_post.bats
@@ -42,11 +42,11 @@ teardown() {
   assert_output --partial 'Must specify either --solr-update-url or -c parameter'
 
   run solr post -h
-  assert_output --partial 'usage: post'
+  assert_output --partial 'usage: bin/solr post'
   refute_output --partial 'ERROR'
 
   run solr post --help
-  assert_output --partial 'usage: post'
+  assert_output --partial 'usage: bin/solr post'
   refute_output --partial 'ERROR'
 
 }