Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions reframe/frontend/statistics.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,15 +105,15 @@ def json(self, force=False):
'time_setup': t.duration('setup'),
'time_total': t.duration('total')
}
partition = check.current_partition
environ = check.current_environ
if partition:
entry['system'] = partition.fullname
entry['scheduler'] = partition.scheduler.registered_name

if environ:
entry['environment'] = environ.name

# We take partition and environment from the test case and not
# from the check, since if the test fails before `setup()`,
# these are not set inside the check.
partition = t.testcase.partition
environ = t.testcase.environ
entry['system'] = partition.fullname
entry['scheduler'] = partition.scheduler.registered_name
entry['environment'] = environ.name
if check.job:
entry['jobid'] = check.job.jobid
entry['job_stderr'] = check.stderr.evaluate()
Expand Down