mirror of
https://github.com/samba-team/samba.git
synced 2025-01-08 21:18:16 +03:00
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
This commit is contained in:
parent
81464daea7
commit
c31f54112e
@ -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")
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user