mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-26 01:22:04 +00:00
Merge pull request #4130 from Miniwoffer/testscript_printhelp
clickhouse-test "no binary found"
This commit is contained in:
commit
c5ca446547
@ -369,12 +369,15 @@ if __name__ == '__main__':
|
||||
args.tmp = '/tmp/clickhouse-test'
|
||||
if args.tmp is None:
|
||||
args.tmp = args.queries
|
||||
|
||||
if args.client is None:
|
||||
if os.access(args.binary + '-client', os.X_OK):
|
||||
args.client = args.binary + '-client'
|
||||
else:
|
||||
elif os.access(args.binary,os.X_OK):
|
||||
args.client = args.binary + ' client'
|
||||
else:
|
||||
print("No clickhouse binary found")
|
||||
parser.print_help();
|
||||
exit(0);
|
||||
if args.configclient:
|
||||
args.client += ' --config-file=' + args.configclient
|
||||
if os.getenv("CLICKHOUSE_HOST"):
|
||||
|
Loading…
Reference in New Issue
Block a user