Skip to content

Commit 272e1aa

Browse files
author
Vasileios Karakasis
committed
Minor fixes
1 parent 3f006e8 commit 272e1aa

File tree

2 files changed

+11
-5
lines changed

2 files changed

+11
-5
lines changed

reframe/frontend/cli.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -765,7 +765,7 @@ def print_infoline(param, value):
765765
)
766766
os.makedirs(os.path.dirname(report_file), exist_ok=True)
767767

768-
# Build final report JSON
768+
# Build final JSON report
769769
run_stats = runner.stats.json()
770770
session_info.update({
771771
'num_cases': run_stats[0]['num_cases'],

unittests/test_policies.py

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -140,14 +140,20 @@ def test_runall(make_runner, make_cases, common_exec_ctx):
140140
'config_file': rt.runtime().site_config.filename,
141141
'data_version': '1.0',
142142
'hostname': socket.gethostname(),
143+
'num_cases': run_stats[0]['num_cases'],
144+
'num_failures': run_stats[-1]['num_failures'],
143145
'prefix_output': rt.runtime().output_prefix,
144146
'prefix_stage': rt.runtime().stage_prefix,
147+
'time_elapsed': time_end - time_start,
148+
'time_end': time.strftime(
149+
'%FT%T%z', time.localtime(time_end),
150+
),
151+
'time_start': time.strftime(
152+
'%FT%T%z', time.localtime(time_start),
153+
),
145154
'user': os_ext.osuser(),
146155
'version': os_ext.reframe_version(),
147-
'workdir': os.getcwd(),
148-
'num_cases': run_stats[0]['num_cases'],
149-
'num_failures': run_stats[-1]['num_failures']
150-
156+
'workdir': os.getcwd()
151157
},
152158
'runs': run_stats
153159
}

0 commit comments

Comments
 (0)