Module: check_mk
Branch: master
Commit: 3fddbc6bee16920f30745f23fa04281c5cf61981
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=3fddbc6bee1692…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Wed Nov 30 16:18:02 2016 +0100
Tests: Write out executed commands in all cases, do not suppress output anymore
---
tests/testlib/__init__.py | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/tests/testlib/__init__.py b/tests/testlib/__init__.py
index 8cbe151..eceb571 100644
--- a/tests/testlib/__init__.py
+++ b/tests/testlib/__init__.py
@@ -47,7 +47,9 @@ def var_dir():
def omd(cmd):
- return os.system(" ".join(["sudo", "/usr/bin/omd"] +
cmd + [">/dev/null"])) >> 8
+ cmdline = " ".join(["sudo", "/usr/bin/omd"] + cmd)
+ print "Executing: %s" % cmdline
+ return os.system(cmdline) >> 8
# It's ok to make it currently only work on debian based distros