]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
qa/workunits/smb: add a method for getting testdir path
authorJohn Mulligan <jmulligan@redhat.com>
Mon, 29 Jun 2026 18:25:13 +0000 (14:25 -0400)
committerJohn Mulligan <jmulligan@redhat.com>
Sat, 11 Jul 2026 14:38:31 +0000 (10:38 -0400)
Signed-off-by: John Mulligan <jmulligan@redhat.com>
qa/workunits/smb/tests/smbutil.py

index e345c66e46495082cf81ce92e72c45bb16d595b2..38f7f018a5735ef890cead8c63c3a82b94dfc991 100644 (file)
@@ -1,5 +1,6 @@
 import base64
 import contextlib
+import os
 import pathlib
 import time
 
@@ -89,6 +90,10 @@ class SMBTestConf:
         # it for now until we really need to check
         return self.clients()[0]
 
+    @property
+    def testdir(self):
+        return self._data.get('testdir') or os.path.expanduser('~/cephtest')
+
 
 @contextlib.contextmanager
 def connection(conf, share):