Skip to content

Commit

Permalink
debug2
Browse files Browse the repository at this point in the history
  • Loading branch information
spuiuk committed Jun 25, 2024
1 parent 1cce299 commit 58b545e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
4 changes: 3 additions & 1 deletion testcases/loading/test_loading.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 = []

Expand All @@ -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):
Expand Down
1 change: 1 addition & 0 deletions testhelper/smbclient.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ def __init__(
self.connect()

def _path(self, path: str = "/") -> str:
path.replace("/", "\\")
return self.prepath + path

def connect(self) -> None:
Expand Down

0 comments on commit 58b545e

Please sign in to comment.