Skip to content

Commit 2ea4462

Browse files
authored
Merge pull request #2828 from ekouts/feat/log_and_config_files_report_m
[enhancement] Include log files in the run report
2 parents c51df88 + 95a599f commit 2ea4462

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

reframe/frontend/cli.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -924,6 +924,7 @@ def print_infoline(param, value):
924924
'config_files': rt.site_config.sources,
925925
'data_version': runreport.DATA_VERSION,
926926
'hostname': socket.gethostname(),
927+
'log_files': logging.log_files(),
927928
'prefix_output': rt.output_prefix,
928929
'prefix_stage': rt.stage_prefix,
929930
'user': osext.osuser(),
@@ -950,7 +951,7 @@ def print_infoline(param, value):
950951
print_infoline('stage directory', repr(session_info['prefix_stage']))
951952
print_infoline('output directory', repr(session_info['prefix_output']))
952953
print_infoline('log files',
953-
', '.join(repr(s) for s in logging.log_files()))
954+
', '.join(repr(s) for s in session_info['log_files']))
954955
printer.info('')
955956
try:
956957
logging.getprofiler().enter_region('test processing')

reframe/frontend/runreport.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
# The schema data version
1919
# Major version bumps are expected to break the validation of previous schemas
2020

21-
DATA_VERSION = '3.0'
21+
DATA_VERSION = '3.1'
2222
_SCHEMA = os.path.join(rfm.INSTALL_PREFIX, 'reframe/schemas/runreport.json')
2323

2424

reframe/schemas/runreport.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,10 @@
116116
},
117117
"data_version": {"type": "string"},
118118
"hostname": {"type": "string"},
119+
"log_files": {
120+
"type": "array",
121+
"items": {"type": "string"}
122+
},
119123
"num_cases": {"type": "number"},
120124
"num_failures": {"type": "number"},
121125
"num_aborted": {"type": "number"},

0 commit comments

Comments
 (0)