* Reverting changes to clickhouse-test as it seems to cause some tests to fail

* Updating client.py to use CLICKHOUSE_BINARY env variable instead of CLICKHOUSE_CLIENT
This commit is contained in:
Vitaliy Zakaznikov 2019-06-13 21:02:15 -04:00
parent 117f2d191e
commit 6cca6d359d
2 changed files with 2 additions and 2 deletions

View File

@ -258,7 +258,7 @@ def main(args):
# Keep same default values as in queries/shell_config.sh
os.environ.setdefault("CLICKHOUSE_BINARY", args.binary)
os.environ.setdefault("CLICKHOUSE_CLIENT", args.client)
#os.environ.setdefault("CLICKHOUSE_CLIENT", args.client)
os.environ.setdefault("CLICKHOUSE_CONFIG", args.configserver)
if args.configclient:
os.environ.setdefault("CLICKHOUSE_CONFIG_CLIENT", args.configclient)

View File

@ -12,7 +12,7 @@ end_of_block = r'.*\r\n.*\r\n'
def client(command=None, name='', log=None):
if command is None:
client = uexpect.spawn(os.environ.get('CLICKHOUSE_CLIENT'))
client = uexpect.spawn(os.environ.get('CLICKHOUSE_BINARY', 'clickhouse') + '-client')
else:
client = uexpect.spawn(command)
client.eol('\r')