]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
python/tests: also populate self.server in calls LibsmbTests setup()
authorRalph Boehme <slow@samba.org>
Fri, 15 Aug 2025 09:49:27 +0000 (11:49 +0200)
committerJule Anger <janger@samba.org>
Thu, 28 Aug 2025 09:38:21 +0000 (09:38 +0000)
BUG: https://bugzilla.samba.org/show_bug.cgi?id=15843

Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Volker Lendecke <vl@samba.org>
(cherry picked from commit 5f7b31927733b0ff3e1207be242f1ddb2cb699bd)

python/samba/tests/libsmb.py

index 3ac1b68a59b4f97f4d2a457548b8ec6a2a1844bb..e3683901df201f627514c05c009bfa751f38d7df 100644 (file)
@@ -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):