Module: check_mk
Branch: master
Commit: 43c85a7ddbf259d03280b4939351f9ff09255cd5
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=43c85a7ddbf259…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Fri Mar 1 11:48:40 2019 +0100
Fixed syntax error
Change-Id: I196d96c496c8fa8288e7672b85e16b864b090741
---
tests/integration/cmk_base/snmp/test_snmp.py | 36 +++++++++++++++-------------
1 file changed, 19 insertions(+), 17 deletions(-)
diff --git a/tests/integration/cmk_base/snmp/test_snmp.py
b/tests/integration/cmk_base/snmp/test_snmp.py
index 3a3127b..67a32e1 100644
--- a/tests/integration/cmk_base/snmp/test_snmp.py
+++ b/tests/integration/cmk_base/snmp/test_snmp.py
@@ -1,3 +1,4 @@
+# pylint: disable=redefined-outer-name
import subprocess
import logging
import os
@@ -44,23 +45,24 @@ def snmpsim(site, request, tmp_path_factory):
log.set_verbosity(2)
debug.enable()
cmd = [
- "%s/.venv/bin/python" % cmk_path()
- snmpsimd_path,
- #"--log-level=error",
- "--cache-dir",
- str(tmp_path / "snmpsim"),
- "--data-dir",
- str(source_data_dir),
- # TODO: Fix port allocation to prevent problems with parallel tests
- #"--agent-unix-endpoint="
- "--agent-udpv4-endpoint=127.0.0.1:1337",
- "--agent-udpv6-endpoint=[::1]:1337",
- "--v3-user=authOnlyUser",
- "--v3-auth-key=authOnlyUser",
- "--v3-auth-proto=MD5",
- ]
-
- p = subprocess.Popen(cmd,
+ "%s/.venv/bin/python" % cmk_path(),
+ snmpsimd_path,
+ #"--log-level=error",
+ "--cache-dir",
+ str(tmp_path / "snmpsim"),
+ "--data-dir",
+ str(source_data_dir),
+ # TODO: Fix port allocation to prevent problems with parallel tests
+ #"--agent-unix-endpoint="
+ "--agent-udpv4-endpoint=127.0.0.1:1337",
+ "--agent-udpv6-endpoint=[::1]:1337",
+ "--v3-user=authOnlyUser",
+ "--v3-auth-key=authOnlyUser",
+ "--v3-auth-proto=MD5",
+ ]
+
+ p = subprocess.Popen(
+ cmd,
close_fds=True,
# Silence the very noisy output. May be useful to enable this for debugging
tests
#stdout=open(os.devnull, "w"),