mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-22 15:42:02 +00:00
Merge branch 'master' of github.com:yandex/ClickHouse
This commit is contained in:
commit
e7adc34aeb
@ -47,11 +47,10 @@ def main(args):
|
||||
|
||||
SERVER_DIED = False
|
||||
|
||||
|
||||
def is_data_present():
|
||||
clickhouse_proc = Popen(shlex.split(args.client), stdin=PIPE, stdout=PIPE, stderr=PIPE)
|
||||
(stdout, stderr) = clickhouse_proc.communicate("EXISTS TABLE test.hits")
|
||||
if proc.returncode != 0:
|
||||
if clickhouse_proc.returncode != 0:
|
||||
raise CalledProcessError(clickhouse_proc.returncode, args.client, stderr)
|
||||
|
||||
return stdout.startswith('1')
|
||||
@ -342,12 +341,12 @@ if __name__ == '__main__':
|
||||
|
||||
if args.queries is None and os.path.isdir('queries'):
|
||||
args.queries = 'queries'
|
||||
if args.tmp is None:
|
||||
args.tmp = args.queries
|
||||
elif args.queries is None:
|
||||
args.queries = '/usr/share/clickhouse-test/queries'
|
||||
if args.tmp is None:
|
||||
args.tmp = '/tmp/clickhouse-test'
|
||||
if args.tmp is None:
|
||||
args.tmp = args.queries
|
||||
|
||||
if args.client is None:
|
||||
args.client = args.binary + '-client'
|
||||
|
Loading…
Reference in New Issue
Block a user