summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2010-12-27 12:20:47 +0100
committerStefan Metzmacher <metze@samba.org>2010-12-27 15:37:57 +0100
commit7ea1b767977c8c201c0f5bfaeb01f96af4b51f7b (patch)
treeeefe38fb5dcc8a2f12703035b5a7d86d9660cde6 /lib
parent01a1a71b55a21c7bc68d3713f5cc45e278f0d9e7 (diff)
downloadsamba-7ea1b767977c8c201c0f5bfaeb01f96af4b51f7b.tar.gz
samba-7ea1b767977c8c201c0f5bfaeb01f96af4b51f7b.tar.bz2
samba-7ea1b767977c8c201c0f5bfaeb01f96af4b51f7b.zip
tdb: setup TEST_DATA_PREFIX for make test
metze
Diffstat (limited to 'lib')
-rw-r--r--lib/tdb/wscript6
1 files changed, 5 insertions, 1 deletions
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)