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)
committerKarolin Seeger <kseeger@samba.org>
Tue, 27 Oct 2020 08:22:02 +0000 (08:22 +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>
(cherry picked from commit 8fa0d3331b2b2c450d86bffec0a6f39320fcb8c0)

buildtools/wafsamba/wafsamba.py

index 7827d3746545988d16e9ddd05f41e67e67dc09d1..25fed671e5bfe23cf88ad8f88bf5bc6048779803 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')