From 7ea1b767977c8c201c0f5bfaeb01f96af4b51f7b Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Mon, 27 Dec 2010 12:20:47 +0100 Subject: tdb: setup TEST_DATA_PREFIX for make test metze --- lib/tdb/wscript | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/tdb/wscript b/lib/tdb/wscript index 37b9b5b8e0..8146a98608 100644 --- a/lib/tdb/wscript +++ b/lib/tdb/wscript @@ -115,7 +115,11 @@ def build(bld): def test(ctx): '''run tdb 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 = os.path.join(Utils.g_module.blddir, 'tdbtorture') ret = samba_utils.RUN_COMMAND(cmd) print("testsuite returned %d" % ret) -- cgit