summaryrefslogtreecommitdiff
path: root/source4/setup/upgrade.py
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2007-12-25 16:36:53 -0600
committerStefan Metzmacher <metze@samba.org>2007-12-26 11:57:08 -0600
commit43a03b0fb48ceb528539a16b0023fb5b30b7a79e (patch)
tree70102e3e78475c0f3845157b2d720503cca350c8 /source4/setup/upgrade.py
parent327847b98765e29a10f70e2b7512bd9acd6a0570 (diff)
downloadsamba-43a03b0fb48ceb528539a16b0023fb5b30b7a79e.tar.gz
samba-43a03b0fb48ceb528539a16b0023fb5b30b7a79e.tar.bz2
samba-43a03b0fb48ceb528539a16b0023fb5b30b7a79e.zip
r26598: Simplify the way Python tests are run.
(This used to be commit d649f73431fc993e31522e7fc8e1e35e0a4421d8)
Diffstat (limited to 'source4/setup/upgrade.py')
-rwxr-xr-xsource4/setup/upgrade.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/source4/setup/upgrade.py b/source4/setup/upgrade.py
index c531e28ed5..ea6f83d7de 100755
--- a/source4/setup/upgrade.py
+++ b/source4/setup/upgrade.py
@@ -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, "")