From b9ac1f45a14b9783602fe4508b1f450dd2676bb6 Mon Sep 17 00:00:00 2001 From: Jelmer Vernooij Date: Tue, 6 Mar 2012 00:38:54 +0100 Subject: selftest.py: Only run teardown_all when actually relevant. --- selftest/selftest.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'selftest/selftest.py') 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"): -- cgit