Module: check_mk
Branch: master
Commit: fa0be13ed4488c97ab3ad40045062497202773b2
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=fa0be13ed4488c…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Thu Nov 23 10:07:50 2017 +0100
Fixed issue with new check
Change-Id: I2b540d742687178ed162bbf0971cc4f59607ce2c
---
tests/cmk_base/test_modes.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/tests/cmk_base/test_modes.py b/tests/cmk_base/test_modes.py
index 2425fc1..c72c745 100644
--- a/tests/cmk_base/test_modes.py
+++ b/tests/cmk_base/test_modes.py
@@ -667,8 +667,8 @@ def test_check_discovery(test_cfg, site):
# '----------------------------------------------------------------------'
def test_check(test_cfg, site):
- for opt in [ "--check", "" ]:
- p = site.execute(["cmk", opt, "modes-test-host"],
stdout=subprocess.PIPE)
+ for opt in [ ["--check"], [] ]:
+ p = site.execute(["cmk" ] + opt + [ "modes-test-host"],
stdout=subprocess.PIPE)
assert p.wait() == 0
output = p.stdout.read()
assert output.startswith("OK - Agent version")