summaryrefslogtreecommitdiffstats
path: root/python
diff options
context:
space:
mode:
authorChristof Schmitt <cs@samba.org>2015-01-15 14:31:19 -0700
committerChristof Schmitt <cs@samba.org>2015-01-16 02:36:39 +0100
commitc31f54112e21b2e76398a402e864a2b6b6c74e6c (patch)
treefdb1cc2c18120cf039ae9813431de92ea758b78c /python
parent81464daea71e5fa3067ec7d5f5c69c890c0f7949 (diff)
downloadsamba-c31f54112e21b2e76398a402e864a2b6b6c74e6c.tar.gz
samba-c31f54112e21b2e76398a402e864a2b6b6c74e6c.tar.xz
samba-c31f54112e21b2e76398a402e864a2b6b6c74e6c.zip
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@samba.org> Reviewed-By: Jelmer Vernooij <jelmer@samba.org> Autobuild-User(master): Christof Schmitt <cs@samba.org> Autobuild-Date(master): Fri Jan 16 02:36:39 CET 2015 on sn-devel-104
Diffstat (limited to 'python')
-rw-r--r--python/samba/tests/samba3.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/python/samba/tests/samba3.py b/python/samba/tests/samba3.py
index f449c64142..126e133f4c 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")