Skip to content

Commit

Permalink
Try to fix the snmpsim in certain distros
Browse files Browse the repository at this point in the history
Change-Id: Ib566d76c435072a3233a36e41560ff8e378bee98
  • Loading branch information
Konstantin Baikov committed Oct 24, 2023
1 parent 019b3e9 commit 8debc10
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions tests/integration/cmk/snmplib/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -193,11 +193,11 @@ def _is_listening(process_def: ProcessDef) -> bool:
if snmpsimd_died:
print("=============================================snmpsimd dead from the beginning")
process = _snmpsimd_process(process_def)
if process is None:
snmpsimd_died = True
print(
"=============================================snmpsimd dead _snmpsimd_process didn't find process"
)
snmpsimd_proc_found = process is not None

if not snmpsimd_proc_found:
logger.debug("Did not detect actual snmpsim-command process")
return False

if not snmpsimd_died:
pid = process.pid # type: ignore[union-attr]
Expand Down

0 comments on commit 8debc10

Please sign in to comment.