Skip to content

Commit 9f6c837

Browse files
committed
Skip log_performance when the check is None
1 parent a1d8331 commit 9f6c837

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

reframe/core/logging.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -726,6 +726,9 @@ def _update_check_extras(self):
726726
)
727727

728728
def log_performance(self, level, task, msg=None, multiline=False):
729+
if self.extra['__rfm_check__'] is None:
730+
return
731+
729732
self.extra['check_partition'] = task.testcase.partition.name
730733
self.extra['check_environ'] = task.testcase.environ.name
731734
self.extra['check_result'] = 'pass' if task.succeeded else 'fail'

0 commit comments

Comments
 (0)