diff options
author | Stefan Metzmacher <metze@samba.org> | 2010-12-27 12:29:07 +0100 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2010-12-27 15:37:58 +0100 |
commit | 3321d87327cd0782a5835421ec3f469cb931fa10 (patch) | |
tree | a4b78772daae6df198b776db7cce3dab7bdac1ab | |
parent | fd4436abfe52577ed029c58054edd09c720d7e0d (diff) | |
download | samba-3321d87327cd0782a5835421ec3f469cb931fa10.tar.gz samba-3321d87327cd0782a5835421ec3f469cb931fa10.tar.bz2 samba-3321d87327cd0782a5835421ec3f469cb931fa10.zip |
s4:ldb: setup TEST_DATA_PREFIX for make test
metze
-rw-r--r-- | source4/lib/ldb/wscript | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/source4/lib/ldb/wscript b/source4/lib/ldb/wscript index 97b7cc1ed4..a7e93f6f47 100644 --- a/source4/lib/ldb/wscript +++ b/source4/lib/ldb/wscript @@ -241,7 +241,11 @@ def build(bld): def test(ctx): '''run ldb testsuite''' - import Utils, samba_utils + import Utils, samba_utils, shutil + test_prefix = "%s/st" % (Utils.g_module.blddir) + shutil.rmtree(test_prefix, ignore_errors=True) + os.makedirs(test_prefix) + os.putenv('TEST_DATA_PREFIX', test_prefix) cmd = 'tests/test-tdb.sh' ret = samba_utils.RUN_COMMAND(cmd) print("testsuite returned %d" % ret) |