]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
test: smbtorture3's OPLOCK5 test only available with kernel oplocks
authorVolker Lendecke <vl@samba.org>
Thu, 26 Nov 2020 08:56:50 +0000 (09:56 +0100)
committerJeremy Allison <jra@samba.org>
Mon, 30 Nov 2020 22:24:38 +0000 (22:24 +0000)
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/selftest/tests.py

index 6cfb98e2bb60788f3246f5f56e891d9371a82331..349be8cd7da71737dcd858dde09caa6ec2426b67 100755 (executable)
@@ -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
 #