[apparmor] [patch 03/11] utils: dont delete tmpdir when debugging test-aa-easyprof.py
Steve Beattie
steve at nxnw.org
Thu Mar 6 01:44:37 UTC 2014
It's not useful to report the location of the temporary directory for
each test if you're going to immediately delete it.
Signed-off-by: Steve Beattie <steve at nxnw.org>
---
utils/test/test-aa-easyprof.py | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
Index: b/utils/test/test-aa-easyprof.py
===================================================================
--- a/utils/test/test-aa-easyprof.py
+++ b/utils/test/test-aa-easyprof.py
@@ -172,7 +172,8 @@ TEMPLATES_DIR="%s/templates"
if os.path.exists(self.tmpdir):
if debugging:
sys.stdout.write("%s\n" % self.tmpdir)
- recursive_rm(self.tmpdir)
+ else:
+ recursive_rm(self.tmpdir)
#
# config file tests
More information about the AppArmor
mailing list