diff --git a/tests/eas/rfc.py b/tests/eas/rfc.py index 364468893f53325d971929dfd60ac4586793d25f..6533bf16d295a416fa1e3f5ba5c7f245229cebc2 100644 --- a/tests/eas/rfc.py +++ b/tests/eas/rfc.py @@ -509,13 +509,15 @@ class TestBase(unittest.TestCase): cls.env.ftrace.start() # ENERGY: start sampling - cls.env.emeter.reset() + if cls.env.emeter: + cls.env.emeter.reset() # WORKLOAD: Run the configured workload wload.run(out_dir=cls.env.out_dir, cgroup=cls.cgroup) # ENERGY: collect measurements - cls.env.emeter.report(cls.env.out_dir) + if cls.env.emeter: + cls.env.emeter.report(cls.env.out_dir) # FTRACE: stop and collect measurements if cls.env.ftrace and cls.target_conf_flag(tc, 'ftrace'):