Module: check_mk
Branch: master
Commit: aaa6f1cf8861a5e6d0a7467704eccd28d4361147
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=aaa6f1cf8861a5…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Fri Jun 10 19:08:52 2016 +0200
Fixed pylint tests when executed on CI server
---
tests/testlib/pylint_cmk.py | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/tests/testlib/pylint_cmk.py b/tests/testlib/pylint_cmk.py
index a349610..0ffec46 100644
--- a/tests/testlib/pylint_cmk.py
+++ b/tests/testlib/pylint_cmk.py
@@ -92,7 +92,8 @@ def get_test_dir():
base_path = os.environ.get("WORKDIR")
if base_path:
base_path += "/" + os.path.basename(sys.argv[0])
- os.makedirs(base_path)
+ if not os.path.exists(base_path):
+ os.makedirs(base_path)
else:
base_path = tempfile.mkdtemp(prefix="cmk_pylint")