From a1ff17bbd33203e70b0d465b366fb1e3e92b14bf Mon Sep 17 00:00:00 2001 From: Katarzyna Treder Date: Thu, 12 Sep 2024 15:26:45 +0200 Subject: [PATCH] Change path type to string in fs_utils remove command Signed-off-by: Katarzyna Treder --- test/functional/api/cas/cas_service.py | 2 +- test/functional/tests/conftest.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/test/functional/api/cas/cas_service.py b/test/functional/api/cas/cas_service.py index 5cb02a3c6..6984c80af 100644 --- a/test/functional/api/cas/cas_service.py +++ b/test/functional/api/cas/cas_service.py @@ -44,5 +44,5 @@ def set_cas_service_timeout(timeout: timedelta = timedelta(minutes=30)): def clear_cas_service_timeout(): - remove(opencas_drop_in_directory, force=True, recursive=True, ignore_errors=True) + remove(str(opencas_drop_in_directory), force=True, recursive=True, ignore_errors=True) reload_daemon() diff --git a/test/functional/tests/conftest.py b/test/functional/tests/conftest.py index 5e67e6b68..fb3be0dca 100644 --- a/test/functional/tests/conftest.py +++ b/test/functional/tests/conftest.py @@ -243,7 +243,7 @@ def base_prepare(item): except Exception: pass # TODO: Reboot DUT if test is executed remotely - remove(opencas_drop_in_directory, recursive=True, ignore_errors=True) + remove(str(opencas_drop_in_directory), recursive=True, ignore_errors=True) from storage_devices.drbd import Drbd if Drbd.is_installed():