diff options
Diffstat (limited to 'lib/tdb/wscript')
-rw-r--r-- | lib/tdb/wscript | 6 |
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) |