[PATCH] samba3.py: Correctly initialize cache directory for passdb test

Christof Schmitt cs at samba.org
Thu Jan 15 14:35:21 MST 2015


From 10e3059649c9e7262cce506552e9bcd8ef499a5d Mon Sep 17 00:00:00 2001
From: Christof Schmitt <cs at samba.org>
Date: Thu, 15 Jan 2015 14:31:19 -0700
Subject: [PATCH] samba3.py: Correctly initialize cache directory for passdb test

Running 'make test TESTS=tests.samba3' succeeds, but the log shows that
it tried to open the gencache tdb in the wrong directory:
Unable to create directory /usr/local/samba/var/cache for file gencache.tdb. Error was No such file or directory

Fix this by correctly initializing the cache directory.

Signed-off-by: Christof Schmitt <cs at samba.org>
---
 python/samba/tests/samba3.py |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/python/samba/tests/samba3.py b/python/samba/tests/samba3.py
index f449c64..126e133 100644
--- a/python/samba/tests/samba3.py
+++ b/python/samba/tests/samba3.py
@@ -72,6 +72,7 @@ class PassdbTestCase(TestCaseInTempDir):
         self.lp.set("private dir", datadir)
         self.lp.set("state directory", datadir)
         self.lp.set("lock directory", datadir)
+        self.lp.set("cache directory", datadir)
         passdb.set_secrets_dir(datadir)
         self.pdb = passdb.PDB("tdbsam")
 
-- 
1.7.1



More information about the samba-technical mailing list