Module: check_mk
Branch: master
Commit: aa62a9534556f35eb4fba3d9fac83bf14784a3d4
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=aa62a9534556f3…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Wed May 31 15:24:21 2017 +0200
Added some debug output to site creation during tests
Change-Id: Id1718516a5b9f74ca1197adeba9a33dcd89fe28a
---
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 e48d3e4..274aabd 100644
--- a/tests/testlib/__init__.py
+++ b/tests/testlib/__init__.py
@@ -304,12 +304,15 @@ class Site(object):
raise Exception("The site %s already exists." % self.id)
if not self.exists():
+ print("[%0.2f] Creating site '%s'" % (time.time(),
self.id))
p = subprocess.Popen(["/usr/bin/sudo", "/usr/bin/omd",
"-V", self.version.version_directory(),
"create",
"--admin-password", "cmk",
"--apache-reload", self.id])
- assert p.wait() == 0
+ exit_code = p.wait()
+ print("[%0.2f] Executed create command" % time.time())
+ assert exit_code == 0
assert os.path.exists("/omd/sites/%s" % self.id)
if self.update_with_git: