From 275c7c20ec08283b50dce0aa753f48ada2ffe2c7 Mon Sep 17 00:00:00 2001 From: kali Date: Thu, 6 Sep 2012 04:17:00 +0900 Subject: safety check in base test removal --- src/leap/testing/basetest.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/leap/testing') diff --git a/src/leap/testing/basetest.py b/src/leap/testing/basetest.py index 881f56c9..3186e1eb 100644 --- a/src/leap/testing/basetest.py +++ b/src/leap/testing/basetest.py @@ -34,6 +34,8 @@ class BaseLeapTest(unittest.TestCase): def tearDownClass(cls): os.environ["PATH"] = cls.old_path os.environ["HOME"] = cls.old_home + # safety check + assert cls.tempdir.startswith('/tmp/leap_tests-') shutil.rmtree(cls.tempdir) # you have to override these methods -- cgit v1.2.3