From 392b59a2fef7bb6908afb03b1411e8240592941d Mon Sep 17 00:00:00 2001 From: Alexey Zatelepin Date: Thu, 31 Aug 2017 23:03:47 +0300 Subject: [PATCH] fix running tests with custom clickhouse-client [#CLICKHOUSE-2] --- dbms/tests/clickhouse-test | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dbms/tests/clickhouse-test b/dbms/tests/clickhouse-test index 0c60b99d36d..4b188920d64 100755 --- a/dbms/tests/clickhouse-test +++ b/dbms/tests/clickhouse-test @@ -8,6 +8,7 @@ import lxml.etree as et from argparse import ArgumentParser from argparse import FileType from pprint import pprint +import shlex import subprocess from subprocess import check_call from subprocess import Popen @@ -34,7 +35,7 @@ def main(args): def is_data_present(): - proc = Popen(args.client, stdin=PIPE, stdout=PIPE, stderr=PIPE) + proc = Popen(shlex.split(args.client), stdin=PIPE, stdout=PIPE, stderr=PIPE) (stdout, stderr) = proc.communicate("EXISTS TABLE test.hits") if proc.returncode != 0: raise CalledProcessError(proc.returncode, args.client, stderr)