1 suggestion
Optional improvements
[suggestion] · The wrapper test does not check the successful child’s exit code
A regression that captures output correctly but returns a nonzero exit code for a successful child would still pass tool_bitcoin.py.
Location: src/util/exec.cpp:48 (head).
Details and suggested fix
The wrapper forwards the child’s exit status, so its successful exit code is part of the behavior being added. In test_args(), the -version runs are expected to succeed, and ret is read from node.process.wait(), but the test checks only the executable name and empty stderr. The failure path already asserts a nonzero status, but no assertion checks that successful runs return 0. Add assert_equal(ret, 0) beside the existing output assertions to cover this behavior on every platform.