CI: skip kernel-oplocks tests on older kernels
authorRalph Boehme <slow@samba.org>
Tue, 15 Dec 2020 06:20:55 +0000 (07:20 +0100)
committerRalph Boehme <slow@samba.org>
Wed, 16 Dec 2020 09:08:30 +0000 (09:08 +0000)
commit703c18980348add3414f7bb27f3b9c770f5bed6e
tree342d6aed7ddd8a75e733495d6dc922d4dcd782e6
parent436903afe2aaf6e3afe794c9ebe22081a55b9bb3
CI: skip kernel-oplocks tests on older kernels

The kernel of the gitlab shared runners container host has a bug in the
interaction between kernel oplocks and O_PATH opens which was fixed by
387e3746d01c34457d6a73688acd90428725070b in 5.3.1:

<https://kernel.googlesource.com/pub/scm/linux/kernel/git/jlayton/linux/+/refs/tags/locks-v5.3-1%5E%21/>

Don't actually start the OPLOCK5 test is kernel oplocks are not available,
instead of relying on the #ifdef HAVE_KERNEL_OPLOCKS_LINUX magic in torture.c.

Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/selftest/tests.py