From: Ralph Boehme Date: Fri, 15 Aug 2025 09:49:27 +0000 (+0200) Subject: python/tests: also populate self.server in calls LibsmbTests setup() X-Git-Tag: samba-4.23.0rc3~21 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=24ba677d1272d7f12b84179652249a4a804b2672;p=thirdparty%2Fsamba.git python/tests: also populate self.server in calls LibsmbTests setup() BUG: https://bugzilla.samba.org/show_bug.cgi?id=15843 Signed-off-by: Ralph Boehme Reviewed-by: Volker Lendecke (cherry picked from commit 5f7b31927733b0ff3e1207be242f1ddb2cb699bd) --- diff --git a/python/samba/tests/libsmb.py b/python/samba/tests/libsmb.py index 3ac1b68a59b..e3683901df2 100644 --- a/python/samba/tests/libsmb.py +++ b/python/samba/tests/libsmb.py @@ -43,6 +43,7 @@ class LibsmbTests(samba.tests.TestCase): server_conf_dir = os.path.dirname(server_conf) self.global_inject = os.path.join(server_conf_dir, "global_inject.conf") + self.server = samba.tests.env_get_var_value("SERVER") self.server_ip = samba.tests.env_get_var_value("SERVER_IP") def clean_file(self, conn, filename):