Module: check_mk
Branch: master
Commit: 89740b88f6324f552e2545ffd7d2b9b5e07fe651
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=89740b88f6324f…
Author: Sven Panne <sp(a)mathias-kettner.de>
Date: Wed Nov 15 14:42:37 2017 +0100
Revert "Small speed up of test executions"
This reverts commit 924f1a3f4f4ba91cd061df384e9db925a8de0f53.
We *have to* update the core configuration, its format might have been
changed.
---
tests/testlib/__init__.py | 10 ++++------
1 file changed, 4 insertions(+), 6 deletions(-)
diff --git a/tests/testlib/__init__.py b/tests/testlib/__init__.py
index 869ccb8..88de0dc 100644
--- a/tests/testlib/__init__.py
+++ b/tests/testlib/__init__.py
@@ -646,17 +646,15 @@ 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
- # 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
+ 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):