diff options
author | Andrew Tridgell <tridge@samba.org> | 2011-02-21 16:46:58 +1100 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2011-02-22 02:51:10 +0100 |
commit | 949427c208159f4ac580f547dd5465a70b4751b7 (patch) | |
tree | e9eef7d495b04516e6161ab9528f964a8d872cd2 /source4/lib | |
parent | 01047e0ba8256ff12345222517a905fd9d66a8b5 (diff) | |
download | samba-949427c208159f4ac580f547dd5465a70b4751b7.tar.gz samba-949427c208159f4ac580f547dd5465a70b4751b7.tar.bz2 samba-949427c208159f4ac580f547dd5465a70b4751b7.zip |
python: use os.environ[] instead of os.putenv()
using os.putenv() causes too much confusion, as it doesn't update
os.getenv()
Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
Diffstat (limited to 'source4/lib')
-rwxr-xr-x | source4/lib/ldb/wscript | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/lib/ldb/wscript b/source4/lib/ldb/wscript index a0b92d57d6..f31f3dd29d 100755 --- a/source4/lib/ldb/wscript +++ b/source4/lib/ldb/wscript @@ -252,7 +252,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 = 'tests/test-tdb.sh' ret = samba_utils.RUN_COMMAND(cmd) print("testsuite returned %d" % ret) |