From 3321d87327cd0782a5835421ec3f469cb931fa10 Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Mon, 27 Dec 2010 12:29:07 +0100 Subject: s4:ldb: setup TEST_DATA_PREFIX for make test metze --- source4/lib/ldb/wscript | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'source4') 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) -- cgit