qa: Drop OpenBSD from supported platforms in get_bind_addrs function

This commit is contained in:
Hennadii Stepanov
2026-06-26 16:33:51 +01:00
parent 8a982eea85
commit 4cb7f39c2c

View File

@@ -95,7 +95,8 @@ def get_bind_addrs(pid):
if conn[3] == STATE_LISTEN and conn[4] in inodes:
bind_addrs.append(conn[1])
return bind_addrs
elif sys.platform.startswith(("darwin", "freebsd", "netbsd", "openbsd")):
# OpenBSD is not included, as it does not ship the lsof utility.
elif sys.platform.startswith(("darwin", "freebsd", "netbsd")):
import re
import subprocess
output = subprocess.check_output(["lsof",