build: Fix kernel oplock test
authorVolker Lendecke <vl@samba.org>
Fri, 20 Nov 2020 13:19:21 +0000 (14:19 +0100)
committerJeremy Allison <jra@samba.org>
Fri, 4 Dec 2020 21:08:38 +0000 (21:08 +0000)
commita8d2654d52bd8539eb73cafe9da5666aad7c7d50
tree3a820d7ed3bd26a5536b8a2e8910b9586c696c8c
parent7d04b5a705f0e97ae568a40b1d5fb13483e9afab
build: Fix kernel oplock test

In a pure docker environment with overlayfs F_GETLEASE works on /tmp,
but F_SETLEASE does not. This test now correctly detects that.

The effect is that the samba-fileserver environment would run fine in
a shared gitlab runner, at the price of not testing kernel oplocks. We
could move the kernel oplock tests to another environment that for
other reasons can't run on shared gitlab runners.

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/wscript