diff --git a/tests/queries/0_stateless/02598_clickhouse_help_program_options.reference b/tests/queries/0_stateless/02598_clickhouse_help_program_options.reference index 3421dcb5865..c2fe09153ed 100644 --- a/tests/queries/0_stateless/02598_clickhouse_help_program_options.reference +++ b/tests/queries/0_stateless/02598_clickhouse_help_program_options.reference @@ -311,7 +311,7 @@ clickhouse git-import --skip-paths 'generated\.cpp|^(contrib|docs?|website|libs/ clickhouse install -Usage: sudo clickhouse install [options] +Usage: clickhouse install [options] -h [ --help ] produce help message --prefix arg (=/) prefix for all paths --binary-path arg (=usr/bin) where to install binaries @@ -399,7 +399,7 @@ clickhouse static clickhouse start -Usage: sudo clickhouse start +Usage: clickhouse start -h [ --help ] produce help message --prefix arg (=/) prefix for all paths --binary-path arg (=usr/bin) directory with binary @@ -417,7 +417,7 @@ Usage: sudo clickhouse start clickhouse stop -Usage: sudo clickhouse stop +Usage: clickhouse stop -h [ --help ] produce help message --prefix arg (=/) prefix for all paths --pid-path arg (=var/run/clickhouse-server) @@ -432,7 +432,7 @@ Usage: sudo clickhouse stop clickhouse status -Usage: sudo clickhouse status +Usage: clickhouse status -h [ --help ] produce help message --prefix arg (=/) prefix for all paths --pid-path arg (=var/run/clickhouse-server) @@ -441,7 +441,7 @@ Usage: sudo clickhouse status clickhouse restart -Usage: sudo clickhouse restart +Usage: clickhouse restart -h [ --help ] produce help message --prefix arg (=/) prefix for all paths --binary-path arg (=usr/bin) directory with binary diff --git a/tests/queries/0_stateless/02598_clickhouse_help_program_options.sh b/tests/queries/0_stateless/02598_clickhouse_help_program_options.sh index ca962304426..992ca50776f 100755 --- a/tests/queries/0_stateless/02598_clickhouse_help_program_options.sh +++ b/tests/queries/0_stateless/02598_clickhouse_help_program_options.sh @@ -36,7 +36,7 @@ $CLICKHOUSE_BINARY format --help | perl -0777 -pe 's/Allowed options:.*\n\n//igs echo -e "\nclickhouse git-import\n" $CLICKHOUSE_BINARY git-import --help | perl -0777 -pe 's/Allowed options:.*\n\n//igs' echo -e "\nclickhouse install\n" -$CLICKHOUSE_BINARY install --help +$CLICKHOUSE_BINARY install --help | perl -ne "s/sudo clickhouse/clickhouse/g; print;" echo -e "\nclickhouse keeper-converter\n" $CLICKHOUSE_BINARY keeper-converter --help echo -e "\nclickhouse obfuscator\n" @@ -47,13 +47,13 @@ $CLICKHOUSE_BINARY static-files-disk-uploader --help | perl -0777 -pe 's/Allowed echo -e "\nclickhouse start\n" -$CLICKHOUSE_BINARY start --help +$CLICKHOUSE_BINARY start --help | perl -ne "s/sudo clickhouse/clickhouse/g; print;" echo -e "\nclickhouse stop\n" -$CLICKHOUSE_BINARY stop --help +$CLICKHOUSE_BINARY stop --help | perl -ne "s/sudo clickhouse/clickhouse/g; print;" echo -e "\nclickhouse status\n" -$CLICKHOUSE_BINARY status --help +$CLICKHOUSE_BINARY status --help | perl -ne "s/sudo clickhouse/clickhouse/g; print;" echo -e "\nclickhouse restart\n" -$CLICKHOUSE_BINARY restart --help +$CLICKHOUSE_BINARY restart --help | perl -ne "s/sudo clickhouse/clickhouse/g; print;" echo -e "\nclickhouse su\n" $CLICKHOUSE_BINARY su --help echo -e "\nclickhouse hash\n"