diff --git a/daily_tests/daily_nightly_tests_report.py b/daily_tests/daily_nightly_tests_report.py index ef4ca72..d15baeb 100755 --- a/daily_tests/daily_nightly_tests_report.py +++ b/daily_tests/daily_nightly_tests_report.py @@ -360,9 +360,6 @@ def generate_email_body(self): def generate_failed_containers(self): for test_case, plan, msg in self.available_test_case: - print( - f"generate_email_body_for_failed_containers: {test_case}, {plan}, {msg}" - ) if test_case not in self.data_dict: continue print( @@ -370,13 +367,18 @@ def generate_failed_containers(self): ) self.body += f"
{msg}
List of failed containers:
" for full_log_name, name in self.data_dict[test_case]: + paste_bin_file = f"{full_log_name}.txt" + self.send_file_to_pastebin( + log_path=full_log_name, log_name=paste_bin_file + ) self.body += ( - f"{name}" + f"{name}" f"
" ) def generate_success_containers(self): for test_case, cont_path, log_name in self.data_dict["SUCCESS_DATA"]: + print(f"generate_success_containers: {self.data_dict[test_case]}") if os.path.exists(log_name): self.body += ( f" See logs"