On the master branch @ ebe4cac38bf6c510b00b8e080acab079c54016d6, the wallet_multiwallet.py
test has several issues:
-
This code: https://github.com/bitcoin/bitcoin/blob/ebe4cac38bf6c510b00b8e080acab079c54016d6/test/functional/wallet_multiwallet.py#L132-L140 checks for the “Error scanning” message in the
debug.log
caused by processing theno_access
directory. However, the same message can also be generated when parsing theself_walletdat_symlink
directory. As a result, the current implementation is prone to producing false-positive results. -
Parsing the
self_walletdat_symlink
directory withbitcoind.exe
depends on how it was built. When cross-compiling, the parsing completes without system errors. On the other hand, when building natively, it raises an “unknown error” exception and logs the “Error scanning” message. -
This code: https://github.com/bitcoin/bitcoin/blob/ebe4cac38bf6c510b00b8e080acab079c54016d6/test/functional/wallet_multiwallet.py#L132-L139 is not portable due to its use of
os.chmod
:
Note: Although Windows supports
chmod()
, you can only set the file’s read-only flag with it (via thestat.S_IWRITE
andstat.S_IREAD
constants or a corresponding integer value).