summaryrefslogtreecommitdiff
path: root/lib/tdb/wscript
diff options
context:
space:
mode:
Diffstat (limited to 'lib/tdb/wscript')
-rw-r--r--lib/tdb/wscript2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/tdb/wscript b/lib/tdb/wscript
index d20c93893c..f704bc79aa 100644
--- a/lib/tdb/wscript
+++ b/lib/tdb/wscript
@@ -119,7 +119,7 @@ def test(ctx):
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)
+ os.environ['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)