What changed, and why it matters
This is a minor test-framework fix for Bitcoin Core's automated QA on NetBSD. It tells the `lsof` network tool to ignore harmless warning messages about device cache files and operating-system version mismatches so those warnings don't break tests. There is no security vulnerability or user-facing change.
No security action needed. Treat as a normal QA/test portability fix.
Security signals we found
No strong security signals were identified.
Evidence from the diff
The commit modifies test/functional/test_framework/netutil.py to pass lsof flags -Di and -w when running on NetBSD. -Di disables the device cache file (already used on FreeBSD), and -w suppresses warnings such as point-release mismatch messages. This only affects the test harness’s parsing of lsof stderr output and has no runtime impact on Bitcoin Core nodes.
Changed components
test/functional/test_framework/netutil.pyInspect captured patch +2 / −1
diff --git a/test/functional/test_framework/netutil.py b/test/functional/test_framework/netutil.py
index 2cbcc7a0..748fb049 100644
--- a/test/functional/test_framework/netutil.py
+++ b/test/functional/test_framework/netutil.py
@@ -100,7 +100,8 @@ def get_bind_addrs(pid):
import re
import subprocess
output = subprocess.check_output(["lsof",
- *(["-Di"] if sys.platform.startswith("freebsd") else []), # Ignore device cache to avoid stderr warnings.
+ *(["-Di"] if sys.platform.startswith(("freebsd", "netbsd")) else []), # Ignore device cache to avoid stderr warnings.
+ *(["-w"] if sys.platform.startswith("netbsd") else []), # Ignore point release mismatch warnings.
"-nP", # Keep hosts and ports numeric.
"-a", # Require all filters to match.
"-p", str(pid), # Limit results to the target pid.
Why this scored 16/100
Community notes
Notes can correct, qualify, or add evidence to the AI analysis. Every note shown here has been validated by a human moderator.
The AI analysis stands alone for now. Submit a note if you can add evidence or important context.