From b77f6fa701b5e92bb397f99761c3f6a874512568 Mon Sep 17 00:00:00 2001 From: John Mulligan Date: Mon, 29 Jun 2026 14:25:13 -0400 Subject: [PATCH] qa/workunits/smb: add a method for getting testdir path Signed-off-by: John Mulligan --- qa/workunits/smb/tests/smbutil.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/qa/workunits/smb/tests/smbutil.py b/qa/workunits/smb/tests/smbutil.py index e345c66e464..38f7f018a57 100644 --- a/qa/workunits/smb/tests/smbutil.py +++ b/qa/workunits/smb/tests/smbutil.py @@ -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):