Merge pull request #1333 from arutk/iltf

fix test_incremental_load_hidden_core
This commit is contained in:
Karolina Rogowska 2022-09-01 14:49:35 +02:00 committed by GitHub
commit 5d42cc7edb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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()}.")