diff --git a/libs/utils/env.py b/libs/utils/env.py index 90766fd3587afb7a905ba3450874e86d5cb0c09c..7f9d21a76569080e60fe404d2cba716e68d51ffd 100644 --- a/libs/utils/env.py +++ b/libs/utils/env.py @@ -828,12 +828,6 @@ 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 = { @@ -841,6 +835,14 @@ 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)