diff --git a/libs/utils/env.py b/libs/utils/env.py index 7f9d21a76569080e60fe404d2cba716e68d51ffd..90766fd3587afb7a905ba3450874e86d5cb0c09c 100644 --- a/libs/utils/env.py +++ b/libs/utils/env.py @@ -828,6 +828,12 @@ class TestEnv(ShareState): if not force and self._calib: return self._calib + required = force or 'rt-app' in self.__installed_tools + + if not required: + self._log.debug('No RT-App workloads, skipping calibration') + return + if not force and 'rtapp-calib' in self.conf: self._log.warning('Using configuration provided RTApp calibration') self._calib = { @@ -835,14 +841,6 @@ class TestEnv(ShareState): for key, value in self.conf['rtapp-calib'].items() } else: - required = (force or - 'rt-app' in self.__installed_tools or - 'ftrace' in self.test_conf) - - if not required: - self._log.debug('No RT-App workloads, skipping calibration') - return - self._log.info('Calibrating RTApp...') self._calib = RTA.calibrate(self.target)