tests: Improve flush handling during cache mode change

Signed-off-by: Rafal Stefanowski <rafal.stefanowski@intel.com>
This commit is contained in:
Rafal Stefanowski
2019-11-22 17:24:49 +01:00
parent 126615add1
commit 901fc402fd
2 changed files with 6 additions and 4 deletions

View File

@@ -112,7 +112,7 @@ class Cache:
def reset_counters(self):
return casadm.reset_counters(self.cache_id)
def set_cache_mode(self, cache_mode: CacheMode, flush: bool = True):
def set_cache_mode(self, cache_mode: CacheMode, flush=None):
return casadm.set_cache_mode(cache_mode, self.cache_id, flush)
def load_io_class(self, file_path: str):