From c55c0fccb04ee6c97a9a8446c5b53a0e9a207be0 Mon Sep 17 00:00:00 2001 From: Andrey Berezin Date: Wed, 18 Jan 2023 15:56:01 +0300 Subject: [PATCH] Update rm command Signed-off-by: Andrey Berezin --- src/neofs_testlib/hosting/docker_host.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/neofs_testlib/hosting/docker_host.py b/src/neofs_testlib/hosting/docker_host.py index ed3604c..cba70ef 100644 --- a/src/neofs_testlib/hosting/docker_host.py +++ b/src/neofs_testlib/hosting/docker_host.py @@ -124,7 +124,9 @@ class DockerHost(Host): volume_path = volume_info["Mountpoint"] shell = self.get_shell() - cmd = f"rm -rf {volume_path}/meta*" if cache_only else f"rm -rf {volume_path}/*" + meta_clean_cmd = f"rm -rf {volume_path}/meta*/*" + data_clean_cmd = f"; rm -rf {volume_path}/data*/*" if not cache_only else "" + cmd = f"{meta_clean_cmd}{data_clean_cmd}" shell.exec(cmd) def attach_disk(self, device: str, disk_info: DiskInfo) -> None: