Module: check_mk
Branch: master
Commit: b21a8ea9ebede3c804ffe0518ae89f8095b1218c
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=b21a8ea9ebede3…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Mon Aug 28 08:00:18 2017 +0200
Small speed up of test executions
Change-Id: I49a6dd97819ebc1e6232c938b4589960c8e4de5c
---
tests/testlib/__init__.py | 10 ++++++----
1 file changed, 6 insertions(+), 4 deletions(-)
diff --git a/tests/testlib/__init__.py b/tests/testlib/__init__.py
index d166b88..6579c2b 100644
--- a/tests/testlib/__init__.py
+++ b/tests/testlib/__init__.py
@@ -558,15 +558,17 @@ class Site(object):
# These things are needed to make the site basically being setup. So this
# is checked during site initialization instead of a dedicated test.
def verify_cmk(self):
+ # First test whether or not the Check_MK is working at all
p = self.execute(["cmk", "--help"], stdout=subprocess.PIPE,
stderr=subprocess.STDOUT, close_fds=True)
stdout = p.communicate()[0]
assert p.returncode == 0, "Failed to execute 'cmk': %s" %
stdout
- p = self.execute(["cmk", "-U"], stdout=subprocess.PIPE,
- stderr=subprocess.STDOUT, close_fds=True)
- stdout = p.communicate()[0]
- assert p.returncode == 0, "Failed to execute 'cmk -U': %s" %
stdout
+ # Then ensure the core configuration is up-to-date
+ #p = self.execute(["cmk", "-U"], stdout=subprocess.PIPE,
+ # stderr=subprocess.STDOUT, close_fds=True)
+ #stdout = p.communicate()[0]
+ #assert p.returncode == 0, "Failed to execute 'cmk -U': %s" %
stdout
def prepare_for_tests(self):