Skip to content

Commit 1ea8518

Browse files
committed
Remove unnecessary check from executors
1 parent 71ec37e commit 1ea8518

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

reframe/frontend/executors/__init__.py

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -386,9 +386,8 @@ def finalize(self):
386386

387387
self._current_stage = 'finalize'
388388
self._notify_listeners('on_task_success')
389-
if self.check.is_performance_check():
390-
self._perflogger.log_performance(logging.INFO, self,
391-
multiline=self._perflog_compat)
389+
self._perflogger.log_performance(logging.INFO, self,
390+
multiline=self._perflog_compat)
392391

393392
@logging.time_function
394393
def cleanup(self, *args, **kwargs):
@@ -398,9 +397,8 @@ def fail(self, exc_info=None):
398397
self._failed_stage = self._current_stage
399398
self._exc_info = exc_info or sys.exc_info()
400399
self._notify_listeners('on_task_failure')
401-
if self.check.is_performance_check():
402-
self._perflogger.log_performance(logging.INFO, self,
403-
multiline=self._perflog_compat)
400+
self._perflogger.log_performance(logging.INFO, self,
401+
multiline=self._perflog_compat)
404402

405403
def skip(self, exc_info=None):
406404
self._skipped = True

0 commit comments

Comments
 (0)