From: Volker Lendecke Date: Mon, 2 Jan 2023 12:56:12 +0000 (+0100) Subject: selftest: Default to "tmp" share in reparsepoints.py X-Git-Tag: tdb-1.4.11~870 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=deed7fab03d2f2c7865cbdc9ef6c55353714d5a6;p=thirdparty%2Fsamba.git selftest: Default to "tmp" share in reparsepoints.py Signed-off-by: Volker Lendecke Reviewed-by: Jeremy Allison --- diff --git a/python/samba/tests/reparsepoints.py b/python/samba/tests/reparsepoints.py index cb7421df518..cf92c1fb945 100644 --- a/python/samba/tests/reparsepoints.py +++ b/python/samba/tests/reparsepoints.py @@ -24,7 +24,9 @@ import samba.tests.libsmb class ReparsePoints(samba.tests.libsmb.LibsmbTests): def connection(self): - share = samba.tests.env_get_var_value("SHARENAME") + share = samba.tests.env_get_var_value("SHARENAME", allow_missing=True) + if not share: + share = "tmp" smb1 = samba.tests.env_get_var_value("SMB1", allow_missing=True) conn = libsmb.Conn( self.server_ip,