diff options
Diffstat (limited to 'source4/lib/ldb')
-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) |