mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-24 00:22:29 +00:00
Strip lines in runner output in _get_all_tests
This commit is contained in:
parent
a8f986350c
commit
d1b6274deb
@ -276,9 +276,13 @@ class ClickhouseIntegrationTestsRunner:
|
|||||||
if not os.path.isfile(all_tests_file_path) or os.path.getsize(all_tests_file_path) == 0:
|
if not os.path.isfile(all_tests_file_path) or os.path.getsize(all_tests_file_path) == 0:
|
||||||
all_tests_full_file_path = "{repo_path}/tests/integration/{out_file}".format(repo_path=repo_path, out_file=out_file_full)
|
all_tests_full_file_path = "{repo_path}/tests/integration/{out_file}".format(repo_path=repo_path, out_file=out_file_full)
|
||||||
if os.path.isfile(all_tests_full_file_path):
|
if os.path.isfile(all_tests_full_file_path):
|
||||||
with open(all_tests_full_file_path, 'r') as f:
|
# log runner output
|
||||||
for line in f:
|
logging.info("runner output:")
|
||||||
logging.info("runner output: %s", line)
|
with open(all_tests_full_file_path, 'r') as all_tests_full_file:
|
||||||
|
for line in all_tests_full_file:
|
||||||
|
line = line.rstrip()
|
||||||
|
if line:
|
||||||
|
logging.info("runner output: %s", line)
|
||||||
else:
|
else:
|
||||||
logging.info("runner output '%s' is empty", all_tests_full_file_path)
|
logging.info("runner output '%s' is empty", all_tests_full_file_path)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user