[Pkg-samba-maint] [samba] 04/08: Ensure daemons can create logs during selftest

Mathieu Parent sathieu at moszumanska.debian.org
Thu Apr 28 07:52:20 UTC 2016


This is an automated email from the git hooks/post-receive script.

sathieu pushed a commit to branch selftest
in repository samba.

commit e98e7cdcf927f91adeb4c1e57020b8d3156a2414
Author: Mathieu Parent <math.parent at gmail.com>
Date:   Tue Apr 26 17:29:38 2016 +0200

    Ensure daemons can create logs during selftest
---
 debian/rules | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/debian/rules b/debian/rules
index 9b613d7..e22170c 100755
--- a/debian/rules
+++ b/debian/rules
@@ -96,7 +96,13 @@ override_dh_auto_test:
 	# Running make test requires configuration with --enable-selftest, which
 	# we don't want to do for production systems.
 ifneq ($(filter selftest,$(DEB_BUILD_PROFILES)),)
-	dh_auto_test
+	mkdir -p testbed/var/log/samba
+	mkdir -p testbed/var/lib/samba
+	NMBD_OPTIONS='--log-basename /var/log/samba' \
+	SAMBA_OPTIONS='--log-basename /var/log/samba' \
+	SMBD_OPTIONS='--log-basename /var/log/samba' \
+	WINBINDD_OPTIONS='--log-basename /var/log/samba' \
+	  dh_auto_test
 endif
 
 override_dh_systemd_start:

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-samba/samba.git




More information about the Pkg-samba-maint mailing list