Skip to content
Merged
Show file tree
Hide file tree
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
5 changes: 4 additions & 1 deletion reframe/frontend/statistics.py
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,10 @@ def json(self, force=False):
test_cls = type(check)
for name, var in test_cls.var_space.items():
if var.is_loggable():
entry['check_vars'][name] = getattr(check, name)
try:
entry['check_vars'][name] = getattr(check, name)
except AttributeError:
entry['check_vars'][name] = '<undefined>'

entry['check_params'] = {}
test_cls = type(check)
Expand Down
9 changes: 9 additions & 0 deletions unittests/resources/checks/frontend_checks.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,15 @@ class BaseFrontendCheck(rfm.RunOnlyRegressionTest):
executable = 'echo hello && echo perf: 10 Gflop/s'
local = True

# Add two required variables that may affect the final run report
x = variable(int)
xlog = variable(int, loggable=True)

@run_after('setup')
def setx(self):
self.x = 1
self.xlog = 1

@sanity_function
def validate_output(self):
return sn.assert_found('hello', self.stdout)
Expand Down
1 change: 1 addition & 0 deletions unittests/test_schedulers.py
Original file line number Diff line number Diff line change
Expand Up @@ -616,6 +616,7 @@ def _read_pid(job, attempts=3):
f'{attempts} attempts')


@pytest.mark.flaky(reruns=3)
def test_cancel_with_grace(minimal_job, scheduler, local_only):
# This test emulates a spawned process that ignores the SIGTERM signal
# and also spawns another process:
Expand Down