From e098610d6a002bde60d645a807e681a27647c11d Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Thu, 26 Nov 2020 09:56:50 +0100 Subject: [PATCH] test: smbtorture3's OPLOCK5 test only available with kernel oplocks Signed-off-by: Volker Lendecke Reviewed-by: Jeremy Allison --- source3/selftest/tests.py | 27 ++++++++++++++------------- 1 file changed, 14 insertions(+), 13 deletions(-) diff --git a/source3/selftest/tests.py b/source3/selftest/tests.py index 6cfb98e2bb6..349be8cd7da 100755 --- a/source3/selftest/tests.py +++ b/source3/selftest/tests.py @@ -129,19 +129,20 @@ for t in fileserver_tests: t = "TLDAP" plantestsuite("samba3.smbtorture_s3.plain.%s" % t, "ad_dc", [os.path.join(samba3srcdir, "script/tests/test_smbtorture_s3.sh"), t, '//$SERVER/tmp', '$DC_USERNAME', '$DC_PASSWORD', smbtorture3, "", "-l $LOCAL_PATH"]) -t = "OPLOCK5" -plantestsuite("samba3.smbtorture_s3.plain.%s" % t, - "fileserver_smb1", - [os.path.join(samba3srcdir, - "script/tests/test_smbtorture_s3.sh"), - t, - '//$SERVER/tmp', - '$USERNAME', - '$PASSWORD', - smbtorture3, - "", - "-l $LOCAL_PATH", - "-mNT1"]) +if have_linux_kernel_oplocks: + t = "OPLOCK5" + plantestsuite("samba3.smbtorture_s3.plain.%s" % t, + "fileserver_smb1", + [os.path.join(samba3srcdir, + "script/tests/test_smbtorture_s3.sh"), + t, + '//$SERVER/tmp', + '$USERNAME', + '$PASSWORD', + smbtorture3, + "", + "-l $LOCAL_PATH", + "-mNT1"]) # # RENAME-ACCESS needs to run against a special share - acl_xattr_ign_sysacl_windows # -- 2.47.3