diff --git a/testcases/loading/test_loading.py b/testcases/loading/test_loading.py index 816ff07..9805cee 100644 --- a/testcases/loading/test_loading.py +++ b/testcases/loading/test_loading.py @@ -158,7 +158,8 @@ def _simple_run(self, op=""): def _clean_up(self): # Go through open file list and delete any existing files - for file in self.files: + for file in self.smbclient.listdir(self.rootpath): + print(f"unlinking {self.rootpath}/{file}") self.smbclient.unlink(f"{self.rootpath}/{file}") self.files = [] @@ -185,6 +186,7 @@ def simple_load(self, test_start: float, test_stop: float) -> None: except (IOError, TimeoutError, ConnectionError) as error: print(error) self.stats["error"] += 1 + print(self.smbclient.listdir(self.rootpath)) self.test_running = False def start(self, test_start, test_stop): diff --git a/testhelper/smbclient.py b/testhelper/smbclient.py index 83e4697..cf73f20 100644 --- a/testhelper/smbclient.py +++ b/testhelper/smbclient.py @@ -27,6 +27,7 @@ def __init__( self.connect() def _path(self, path: str = "/") -> str: + path.replace("/", "\\") return self.prepath + path def connect(self) -> None: