From 8764338582f323689812f7e655fe00d8b965ad18 Mon Sep 17 00:00:00 2001 From: "Rutkowski, Adam J" Date: Wed, 31 Aug 2022 13:28:15 +0200 Subject: [PATCH] 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 --- test/functional/tests/ci/test_incremental_load_ci.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/test/functional/tests/ci/test_incremental_load_ci.py b/test/functional/tests/ci/test_incremental_load_ci.py index 232531f..07c4c73 100644 --- a/test/functional/tests/ci/test_incremental_load_ci.py +++ b/test/functional/tests/ci/test_incremental_load_ci.py @@ -110,8 +110,11 @@ def test_incremental_load_hidden_core(): with TestRun.step("Load cache"): cache = casadm.load_cache(cache_dev) - if cache.get_status() is not CacheStatus.running: - TestRun.fail(f"Cache {cache.cache_id} should be running but is {cache.get_status()}.") + if cache.get_status() is not CacheStatus.incomplete: + TestRun.fail( + f"Cache {cache.cache_id} should be incomplete but is " + f"{cache.get_status()}." + ) for core in cache.get_core_devices(): if core.get_status() is not CoreStatus.active: TestRun.fail(f"Core {core.core_id} should be Active but is {core.get_status()}.")