Module: check_mk
Branch: master
Commit: 843aefd6f6aba7fb4ddc49d387c1f8585718d080
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=843aefd6f6aba7…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Mon Aug 1 14:21:17 2016 +0200
CI: Set site not to be reused
---
tests/testlib/__init__.py | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/tests/testlib/__init__.py b/tests/testlib/__init__.py
index 2f21681..5d4d544 100644
--- a/tests/testlib/__init__.py
+++ b/tests/testlib/__init__.py
@@ -290,8 +290,11 @@ def site(request):
def site_edition():
return os.environ.get("EDITION", CMKVersion.CEE)
+ def reuse_site():
+ return os.environ.get("REUSE", "1") == "1"
+
site = Site(site_id=site_id(), version=site_version(),
- edition=site_edition())
+ edition=site_edition(), reuse=reuse_site())
site.cleanup_if_wrong_version()
site.create()
site.open_livestatus_tcp()