From dc6ff508ed9e921b5b2680e356f378c7cd92f496 Mon Sep 17 00:00:00 2001 From: Karolina Rogowska Date: Tue, 11 May 2021 15:15:42 +0200 Subject: [PATCH] improve test_initialize_status - add some time for CAS management device to show up before checking its presence Signed-off-by: Karolina Rogowska --- test/functional/tests/initialize/test_initialize_status.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/test/functional/tests/initialize/test_initialize_status.py b/test/functional/tests/initialize/test_initialize_status.py index 2ad83c0..5fadb33 100644 --- a/test/functional/tests/initialize/test_initialize_status.py +++ b/test/functional/tests/initialize/test_initialize_status.py @@ -2,6 +2,7 @@ # Copyright(c) 2020-2021 Intel Corporation # SPDX-License-Identifier: BSD-3-Clause-Clear # +import time import pytest @@ -22,6 +23,7 @@ def test_init_status(): - CAS management device not present in OS when CAS modules are not loaded. """ with TestRun.step("Check if CAS management device is present in OS."): + time.sleep(5) if cas_module.is_cas_management_dev_present(): TestRun.LOGGER.info("CAS management device is present in OS when CAS module is loaded.") else: @@ -34,6 +36,7 @@ def test_init_status(): casctl.stop() with TestRun.step("Check if CAS management device is not present in OS."): + time.sleep(5) if not cas_module.is_cas_management_dev_present(): TestRun.LOGGER.info( "CAS management device is not present in OS when CAS module is not loaded.")