Skip to content

Commit f4dea54

Browse files
committed
Add tmt-verbose-log to tmt report
Signed-off-by: Petr "Stone" Hracek <phracek@redhat.com>
1 parent 5a2703a commit f4dea54

1 file changed

Lines changed: 3 additions & 6 deletions

File tree

daily_tests/daily_nightly_tests_report.py

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,6 @@
5858

5959
# The default directory used for nightly build
6060
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")
6361

6462

6563
def run_command(
@@ -120,7 +118,6 @@ def __init__(self):
120118
self.date = date.today().strftime("%Y-%m-%d")
121119
self.nightly_builds_url = ""
122120
self.reports_dir = RESULTS_DIR / self.date
123-
self.sclorg_dir = SCLORG_DIR / self.date
124121
self.full_success = False
125122
self.smtp_port = 25
126123
self.smtp_server = "smtp.redhat.com"
@@ -237,8 +234,8 @@ def store_tmt_logs_to_dict(
237234
else:
238235
dictionary_key = "tmt_failed"
239236
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"
242239
self.send_file_to_pastebin(log_path=log_path, log_name=log_name)
243240
if log_name.exists():
244241
with open(log_name) as f:
@@ -378,7 +375,7 @@ def generate_success_containers(self):
378375

379376
def generate_tmt_logs_containers(self):
380377
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}")
382379
if os.path.exists(log_name):
383380
self.body += (
384381
f"<b>{test_case}</b> <a href='{self.get_pastebin_url(log_name=log_name)}'>"

0 commit comments

Comments
 (0)