From: Volker Lendecke Date: Sun, 23 Feb 2020 12:34:18 +0000 (-0800) Subject: selftest: Slightly simplify setting up libsmbclient tests X-Git-Tag: ldb-2.2.0~1596 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5076e28aec0ff35b90eee871940cc077c2cacfd1;p=thirdparty%2Fsamba.git selftest: Slightly simplify setting up libsmbclient tests We'll add per-test arguments soon Signed-off-by: Volker Lendecke Reviewed-by: Jeremy Allison Autobuild-User(master): Jeremy Allison Autobuild-Date(master): Tue Feb 25 19:30:27 UTC 2020 on sn-devel-184 --- diff --git a/source4/selftest/tests.py b/source4/selftest/tests.py index 59251d95433..5cdb3d27b77 100755 --- a/source4/selftest/tests.py +++ b/source4/selftest/tests.py @@ -372,14 +372,20 @@ for t in libsmbclient: if t == "libsmbclient.list_shares": url = "smb://$USERNAME:$PASSWORD@$SERVER" + libsmbclient_testargs = [ + '//$SERVER/tmp', + '-U$USERNAME%$PASSWORD', + "--option=torture:smburl=" + url, + "--option=torture:replace_smbconf=" + "%s/testdata/samba3/smb_new.conf" % srcdir() + ] + for proto in protocols: - libsmbclient_testargs = ["--option=torture:smburl=" + url, - "--option=torture:replace_smbconf=%s/testdata/samba3/smb_new.conf" % srcdir(), - "--option=torture:clientprotocol=%s" % proto] plansmbtorture4testsuite( t, "nt4_dc", - ['//$SERVER/tmp', '-U$USERNAME%$PASSWORD'] + libsmbclient_testargs, + libsmbclient_testargs + + [ "--option=torture:clientprotocol=%s" % proto], "samba4.%s.%s" % (t, proto)) plansmbtorture4testsuite("raw.qfileinfo.ipc", "ad_dc_ntvfs", '//$SERVER/ipc\$ -U$USERNAME%$PASSWORD')