test api: don't retrieving redundant cache stats
Retrieving full cache stats is redundant to get cache state Signed-off-by: Michal Mielewczyk <michal.mielewczyk@intel.com>
This commit is contained in:
parent
149274d770
commit
22cb22cfc9
@ -49,7 +49,11 @@ class Cache:
|
||||
return self.get_statistics().usage_stats.occupancy
|
||||
|
||||
def get_status(self):
|
||||
status = self.get_statistics().config_stats.status.replace(' ', '_').lower()
|
||||
status = (
|
||||
self.get_statistics(stat_filter=[StatsFilter.conf])
|
||||
.config_stats.status.replace(" ", "_")
|
||||
.lower()
|
||||
)
|
||||
return CacheStatus[status]
|
||||
|
||||
@property
|
||||
|
Loading…
Reference in New Issue
Block a user