]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
buildtools: Do not install binaries which are for selftest
authorAndreas Schneider <asn@samba.org>
Thu, 22 Oct 2020 15:40:01 +0000 (17:40 +0200)
committerAndreas Schneider <asn@cryptomilk.org>
Fri, 23 Oct 2020 14:09:43 +0000 (14:09 +0000)
BUG: https://bugzilla.samba.org/show_bug.cgi?id=14550

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Alexander Bokovoy <ab@samba.org>
buildtools/wafsamba/wafsamba.py

index 9f6ee4f5c7f0123209db50e36cbc95b771a8e2cd..9dd6d05b91bc4bb35f0b340790abeba1070cf5dd 100644 (file)
@@ -365,8 +365,10 @@ def SAMBA_BINARY(bld, binname, source,
                  for_selftest=False):
     '''define a Samba binary'''
 
-    if for_selftest and not bld.CONFIG_GET('ENABLE_SELFTEST'):
-        enabled=False
+    if for_selftest:
+        install=False
+        if not bld.CONFIG_GET('ENABLE_SELFTEST'):
+            enabled=False
 
     if not enabled:
         SET_TARGET_TYPE(bld, binname, 'DISABLED')