tests: Wrappers for purge commands

Signed-off-by: Michal Mielewczyk <michal.mielewczyk@intel.com>
This commit is contained in:
Michal Mielewczyk
2020-05-11 06:24:40 -04:00
parent 3b62e40a2e
commit c28babde8b
4 changed files with 30 additions and 0 deletions

View File

@@ -117,6 +117,10 @@ class Cache:
sync()
assert self.get_dirty_blocks().get_value(Unit.Blocks4096) == 0
def purge_cache(self):
casadm.purge_cache(cache_id=self.cache_id)
sync()
def stop(self, no_data_flush: bool = False):
return casadm.stop_cache(self.cache_id, no_data_flush)