samba3.py: Correctly initialize cache directory for passdb test
authorChristof Schmitt <cs@samba.org>
Thu, 15 Jan 2015 21:31:19 +0000 (14:31 -0700)
committerChristof Schmitt <cs@samba.org>
Fri, 16 Jan 2015 01:36:39 +0000 (02:36 +0100)
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

python/samba/tests/samba3.py

index f449c64142a16923336dddc2389ca0a61c56713f..126e133f4c1b196740d6f77c31dbb91d66fe1c45 100644 (file)
@@ -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")