Merge pull request #4130 from Miniwoffer/testscript_printhelp

clickhouse-test "no binary found"
This commit is contained in:
alexey-milovidov 2019-01-23 23:02:02 +03:00 committed by GitHub
commit c5ca446547
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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