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,8 +276,12 @@ class ClickhouseIntegrationTestsRunner:
|
||||
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)
|
||||
if os.path.isfile(all_tests_full_file_path):
|
||||
with open(all_tests_full_file_path, 'r') as f:
|
||||
for line in f:
|
||||
# log runner output
|
||||
logging.info("runner output:")
|
||||
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:
|
||||
logging.info("runner output '%s' is empty", all_tests_full_file_path)
|
||||
|
Loading…
Reference in New Issue
Block a user