Add osx temp dir prefix
authorTomás Touceda <chiiph@leap.se>
Fri, 5 Jul 2013 17:19:06 +0000 (14:19 -0300)
committerTomás Touceda <chiiph@leap.se>
Fri, 5 Jul 2013 17:19:06 +0000 (14:19 -0300)
changes/consider_osx_tempdirs [new file with mode: 0644]
src/leap/common/testing/basetest.py

diff --git a/changes/consider_osx_tempdirs b/changes/consider_osx_tempdirs
new file mode 100644 (file)
index 0000000..5cc20fb
--- /dev/null
@@ -0,0 +1 @@
+  o Add OSX temp directories to the basetests class.
\ No newline at end of file
index 8890bf9..54826d5 100644 (file)
@@ -68,7 +68,8 @@ class BaseLeapTest(unittest.TestCase):
         # safety check! please do not wipe my home...
         # XXX needs to adapt to non-linuces
         leap_assert(
-            cls.tempdir.startswith('/tmp/leap_tests-'),
+            cls.tempdir.startswith('/tmp/leap_tests-') or
+            cls.tempdir.startswith('/var/folder'),
             "beware! tried to remove a dir which does not "
             "live in temporal folder!")
         shutil.rmtree(cls.tempdir)