improve test_initialize_status
- add some time for CAS management device to show up before checking its presence Signed-off-by: Karolina Rogowska <karolina.rogowska@intel.com>
This commit is contained in:
parent
a226b39c4e
commit
dc6ff508ed
@ -2,6 +2,7 @@
|
|||||||
# Copyright(c) 2020-2021 Intel Corporation
|
# Copyright(c) 2020-2021 Intel Corporation
|
||||||
# SPDX-License-Identifier: BSD-3-Clause-Clear
|
# SPDX-License-Identifier: BSD-3-Clause-Clear
|
||||||
#
|
#
|
||||||
|
import time
|
||||||
|
|
||||||
import pytest
|
import pytest
|
||||||
|
|
||||||
@ -22,6 +23,7 @@ def test_init_status():
|
|||||||
- CAS management device not present in OS when CAS modules are not loaded.
|
- 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."):
|
with TestRun.step("Check if CAS management device is present in OS."):
|
||||||
|
time.sleep(5)
|
||||||
if cas_module.is_cas_management_dev_present():
|
if cas_module.is_cas_management_dev_present():
|
||||||
TestRun.LOGGER.info("CAS management device is present in OS when CAS module is loaded.")
|
TestRun.LOGGER.info("CAS management device is present in OS when CAS module is loaded.")
|
||||||
else:
|
else:
|
||||||
@ -34,6 +36,7 @@ def test_init_status():
|
|||||||
casctl.stop()
|
casctl.stop()
|
||||||
|
|
||||||
with TestRun.step("Check if CAS management device is not present in OS."):
|
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():
|
if not cas_module.is_cas_management_dev_present():
|
||||||
TestRun.LOGGER.info(
|
TestRun.LOGGER.info(
|
||||||
"CAS management device is not present in OS when CAS module is not loaded.")
|
"CAS management device is not present in OS when CAS module is not loaded.")
|
||||||
|
Loading…
Reference in New Issue
Block a user