clickhouse-test: fix stdout reference w/o --database argument

It was appended, but never truncated.
This commit is contained in:
Azat Khuzhin 2021-05-22 09:41:47 +03:00
parent 03e28e1cdf
commit 12cc3fc4af

View File

@ -185,9 +185,10 @@ def run_single_test(args, ext, server_logs_level, client_options, case_file, std
'stderr': stderr_file,
}
# >> append to stdout and stderr, because there are also output of per test database creation
# >> append to stderr (but not stdout since it is not used there),
# because there are also output of per test database creation
if not args.database:
pattern = '{test} >> {stdout} 2>> {stderr}'
pattern = '{test} > {stdout} 2>> {stderr}'
else:
pattern = '{test} > {stdout} 2> {stderr}'