summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2012-03-06 00:38:54 +0100
committerJelmer Vernooij <jelmer@samba.org>2012-03-06 00:48:14 +0100
commitb9ac1f45a14b9783602fe4508b1f450dd2676bb6 (patch)
tree987b7d61da0d97e480afd71a9b23491c595c7dbf
parent074ee6f34c3c105d7c5d940b420ccd785c05867e (diff)
downloadsamba-b9ac1f45a14b9783602fe4508b1f450dd2676bb6.tar.gz
samba-b9ac1f45a14b9783602fe4508b1f450dd2676bb6.tar.bz2
samba-b9ac1f45a14b9783602fe4508b1f450dd2676bb6.zip
selftest.py: Only run teardown_all when actually relevant.
-rwxr-xr-xselftest/selftest.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/selftest/selftest.py b/selftest/selftest.py
index 26c409af45..1b2044134c 100755
--- a/selftest/selftest.py
+++ b/selftest/selftest.py
@@ -538,12 +538,10 @@ else:
if opts.resetup_environment:
env_manager.teardown_env(envname)
+ env_manager.teardown_all()
sys.stdout.write("\n")
-if not opts.list:
- env_manager.teardown_all()
-
# if there were any valgrind failures, show them
for fn in os.listdir(prefix):
if fn.startswith("valgrind.log"):