summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTomás Touceda <chiiph@leap.se>2013-07-05 14:19:06 -0300
committerTomás Touceda <chiiph@leap.se>2013-07-05 14:19:06 -0300
commit29053ecc6c3cb7b5b74f7cb7118a7ba7f287e3b1 (patch)
tree206ca1aa2322f41bfc3062fb308fd72f9a9429fc
parentcf28cf88a00784661b2ee085afdf324c9a93100f (diff)
Add osx temp dir prefix
-rw-r--r--changes/consider_osx_tempdirs1
-rw-r--r--src/leap/common/testing/basetest.py3
2 files changed, 3 insertions, 1 deletions
diff --git a/changes/consider_osx_tempdirs b/changes/consider_osx_tempdirs
new file mode 100644
index 0000000..5cc20fb
--- /dev/null
+++ b/changes/consider_osx_tempdirs
@@ -0,0 +1 @@
+ o Add OSX temp directories to the basetests class. \ No newline at end of file
diff --git a/src/leap/common/testing/basetest.py b/src/leap/common/testing/basetest.py
index 8890bf9..54826d5 100644
--- a/src/leap/common/testing/basetest.py
+++ b/src/leap/common/testing/basetest.py
@@ -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)