Strip lines in runner output in _get_all_tests

This commit is contained in:
vdimir 2021-07-22 13:33:05 +03:00
parent a8f986350c
commit d1b6274deb
No known key found for this signature in database
GPG Key ID: F57B3E10A21DBB31

View File

@ -276,9 +276,13 @@ 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:
logging.info("runner output: %s", line)
# 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)