This will hopefully aid in debugging #32855.
Because stdout
and stderr
are consumed by the node, the mock external signers can’t use them for logging.
Instead have them print directly into test_framework.log
, which can then be be retrieved via combine_logs.py
.
In preparation (and addtion) this PR starts with a few refactors:
- move
mock_signer_path
helpers toutil
and reuse them betweenrpc_signer.py
andwallet_signer.py
- move the mocks from
test/functional/mocks
totest/functional
: this is needed to avoid Python import hell in the next commits - have the mocks take advantage of the
test_framework
by extracting (and reusing)perform_pre_checks
andmock_signer_psbt_path
intoutil
- extract the
debug.log
styleFormatter
intoutil
so we can use it in the final commit