Skip to content

Commit 076c8c0

Browse files
author
Vasileios Karakasis
committed
Print report file at the end of the session
1 parent 7d69b18 commit 076c8c0

File tree

2 files changed

+4
-12
lines changed

2 files changed

+4
-12
lines changed

reframe/frontend/cli.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ def list_tags(testcases, printer):
133133

134134
def logfiles_message():
135135
log_files = logging.log_files()
136-
msg = 'Log file(s) saved in: '
136+
msg = 'Log file(s) saved in '
137137
if not log_files:
138138
msg += '<no log file was generated>'
139139
else:
@@ -1054,6 +1054,8 @@ def module_unuse(*paths):
10541054
with open(report_file, 'w') as fp:
10551055
jsonext.dump(json_report, fp, indent=2)
10561056
fp.write('\n')
1057+
1058+
printer.info(f'Run report saved in {report_file!r}')
10571059
except OSError as e:
10581060
printer.warning(
10591061
f'failed to generate report in {report_file!r}: {e}'
@@ -1068,6 +1070,7 @@ def module_unuse(*paths):
10681070
try:
10691071
with open(junit_report_file, 'w') as fp:
10701072
runreport.junit_dump(junit_xml, fp)
1073+
10711074
except OSError as e:
10721075
printer.warning(
10731076
f'failed to generate report in {junit_report_file!r}: '

reframe/frontend/statistics.py

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -281,17 +281,6 @@ def print_failure_stats(self, printer):
281281
for f in l[1:]:
282282
stats_body.append(row_format.format('', '', str(f)))
283283

284-
for p, l in failures.items():
285-
stats_body.append(stats_hline)
286-
stats_body.append('Rerun the failed tests with:')
287-
for f in l:
288-
failed_list = f.split(',')
289-
failed_name = failed_list[0][1:]
290-
failed_env = failed_list[1].strip()
291-
failed_system = failed_list[2][:-1].strip()
292-
stats_body.append(f' -n {failed_name} -p {failed_env}'
293-
f' --system {failed_system} -r')
294-
295284
if stats_body:
296285
for line in (stats_start, stats_title, *stats_body, stats_end):
297286
printer.info(line)

0 commit comments

Comments
 (0)