Make test stable for sudo and no-sudo env

This commit is contained in:
Yatsishin Ilya 2023-04-12 17:55:17 +00:00
parent 7fa0331dd4
commit d351c66a34
2 changed files with 10 additions and 10 deletions

View File

@ -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

View File

@ -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"