1
0
mirror of https://github.com/samba-team/samba.git synced 2025-11-14 12:23:52 +03:00

r26598: Simplify the way Python tests are run.

This commit is contained in:
Jelmer Vernooij
2007-12-25 16:36:53 -06:00
committed by Stefan Metzmacher
parent fa5d1923ef
commit d649f73431
6 changed files with 23 additions and 20 deletions

View File

@@ -63,6 +63,8 @@ lp = param.LoadParm()
if opts.configfile:
lp.load(opts.configfile)
if opts.targetdir is not None:
if not os.path.exists(opts.targetdir):
os.mkdir(opts.targetdir)
lp.set("private dir", os.path.abspath(opts.targetdir))
lp.set("lock dir", os.path.abspath(opts.targetdir))
paths = provision_paths_from_lp(lp, "")