|
58 | 58 |
|
59 | 59 | # The default directory used for nightly build |
60 | 60 | RESULTS_DIR = Path("/var/ci-scripts/daily_reports_dir") |
61 | | -# The default directory used for running build |
62 | | -SCLORG_DIR = Path("/var/ci-scripts/daily_scl_tests") |
63 | 61 |
|
64 | 62 |
|
65 | 63 | def run_command( |
@@ -120,7 +118,6 @@ def __init__(self): |
120 | 118 | self.date = date.today().strftime("%Y-%m-%d") |
121 | 119 | self.nightly_builds_url = "" |
122 | 120 | self.reports_dir = RESULTS_DIR / self.date |
123 | | - self.sclorg_dir = SCLORG_DIR / self.date |
124 | 121 | self.full_success = False |
125 | 122 | self.smtp_port = 25 |
126 | 123 | self.smtp_server = "smtp.redhat.com" |
@@ -237,8 +234,8 @@ def store_tmt_logs_to_dict( |
237 | 234 | else: |
238 | 235 | dictionary_key = "tmt_failed" |
239 | 236 | self.data_dict["tmt"][dictionary_key].append(test_case) |
240 | | - log_path = self.sclorg_dir / f"{test_case}" / "log.txt" |
241 | | - log_name = path_dir / f"{test_case}.log.txt" |
| 237 | + log_path = self.reports_dir / test_case / "tmt-verbose-log" |
| 238 | + log_name = path_dir / "tmt-verbose-log.txt" |
242 | 239 | self.send_file_to_pastebin(log_path=log_path, log_name=log_name) |
243 | 240 | if log_name.exists(): |
244 | 241 | with open(log_name) as f: |
@@ -378,7 +375,7 @@ def generate_success_containers(self): |
378 | 375 |
|
379 | 376 | def generate_tmt_logs_containers(self): |
380 | 377 | for test_case, cont_path, log_name in self.data_dict["tmt"]["logs"]: |
381 | | - print(test_case, cont_path, log_name) |
| 378 | + print(f"generate_tmt_logs_containers: {test_case}, {cont_path}, {log_name}") |
382 | 379 | if os.path.exists(log_name): |
383 | 380 | self.body += ( |
384 | 381 | f"<b>{test_case}</b> <a href='{self.get_pastebin_url(log_name=log_name)}'>" |
|
0 commit comments