test-conftest: Kill IO faster in prepare/teardown

Signed-off-by: Kamil Gierszewski <kamil.gierszewski@huawei.com>
This commit is contained in:
Kamil Gierszewski 2024-11-06 13:57:36 +01:00
parent 720475f85c
commit b8ccf403f0
No known key found for this signature in database

View File

@ -142,7 +142,7 @@ def base_prepare(item):
with TestRun.LOGGER.step("Cleanup before test"): with TestRun.LOGGER.step("Cleanup before test"):
TestRun.executor.run("pkill --signal=SIGKILL fsck") TestRun.executor.run("pkill --signal=SIGKILL fsck")
Udev.enable() Udev.enable()
kill_all_io() kill_all_io(graceful=False)
DeviceMapper.remove_all() DeviceMapper.remove_all()
if installer.check_if_installed(): if installer.check_if_installed():
@ -223,7 +223,7 @@ def pytest_runtest_teardown():
if not TestRun.executor.is_active(): if not TestRun.executor.is_active():
TestRun.executor.wait_for_connection() TestRun.executor.wait_for_connection()
Udev.enable() Udev.enable()
kill_all_io() kill_all_io(graceful=False)
unmount_cas_devices() unmount_cas_devices()
if installer.check_if_installed(): if installer.check_if_installed():