fix test_incremental_load_hidden_core
Cache state after load with missig cores should be "incomplete" rather than "running. Signed-off-by: Rutkowski, Adam J <adam.j.rutkowski@intel.com>
This commit is contained in:
parent
88dff6ead3
commit
8764338582
@ -110,8 +110,11 @@ def test_incremental_load_hidden_core():
|
|||||||
|
|
||||||
with TestRun.step("Load cache"):
|
with TestRun.step("Load cache"):
|
||||||
cache = casadm.load_cache(cache_dev)
|
cache = casadm.load_cache(cache_dev)
|
||||||
if cache.get_status() is not CacheStatus.running:
|
if cache.get_status() is not CacheStatus.incomplete:
|
||||||
TestRun.fail(f"Cache {cache.cache_id} should be running but is {cache.get_status()}.")
|
TestRun.fail(
|
||||||
|
f"Cache {cache.cache_id} should be incomplete but is "
|
||||||
|
f"{cache.get_status()}."
|
||||||
|
)
|
||||||
for core in cache.get_core_devices():
|
for core in cache.get_core_devices():
|
||||||
if core.get_status() is not CoreStatus.active:
|
if core.get_status() is not CoreStatus.active:
|
||||||
TestRun.fail(f"Core {core.core_id} should be Active but is {core.get_status()}.")
|
TestRun.fail(f"Core {core.core_id} should be Active but is {core.get_status()}.")
|
||||||
|
Loading…
Reference in New Issue
Block a user