summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/tests.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/tests.py b/tests/tests.py
index 8f98733..f81d508 100644
--- a/tests/tests.py
+++ b/tests/tests.py
@@ -49,7 +49,10 @@ class BootTest(unittest.TestCase):
# Create temp dir
self.topdir = "/tmp/cobbler_test"
- os.makedirs(self.topdir)
+ try:
+ os.makedirs(self.topdir)
+ except:
+ pass
self.fk_initrd = os.path.join(self.topdir, FAKE_INITRD)
self.fk_initrd2 = os.path.join(self.topdir, FAKE_INITRD2)