Fixes #31409.
The first commit prevents possible false positives by ensuring that each condition potentially causing the “Error scanning” log message is tested separately.
The second commit disables a problematic check on Windows.
wallet_multiwallet.py
#31410
The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.
For details see: https://corecheck.dev/bitcoin/bitcoin/pulls/31410.
See the guideline for information on the review process.
Type | Reviewers |
---|---|
ACK | maflcko |
If your review is incorrectly listed, please react with 👎 to this comment and the bot will ignore it on the next update.
Reviewers, this pull request conflicts with the following ones:
If you consider this pull request important, please also help to review the conflicting pull requests. Ideally, start with the one that should be merged first.
125@@ -129,15 +126,23 @@ def wallet_file(name):
126 for wallet_name in to_load:
127 self.nodes[0].loadwallet(wallet_name)
128
129+ # Tests for possible scanning errors:
130+ # 1. "Permission denied" error.
131 os.mkdir(wallet_dir('no_access'))
132 os.chmod(wallet_dir('no_access'), 0)
icacls
on Windows?
subprocess
?
148+ assert_equal(sorted(map(lambda w: w['name'], walletlist)), sorted(in_wallet_dir))
149+ # 2. "Too many levels of symbolic links" error.
150+ os.mkdir(wallet_dir('self_walletdat_symlink'))
151+ os.symlink('wallet.dat', wallet_dir('self_walletdat_symlink/wallet.dat'))
152+ with self.nodes[0].assert_debug_log(expected_msgs=['Error scanning']):
153+ walletlist = self.nodes[0].listwalletdir()['wallets']
error scanning
?
This change prevents possible false positives by ensuring that each
condition potentially causing the "Error scanning" log message is tested
separately.
review ACK c0127439597ee9d09b8e117be7d6226a68b45721 🎑
Signature:
0untrusted comment: signature from minisign secret key on empty file; verify via: minisign -Vm "${path_to_any_empty_file}" -P RWTRmVTMeKV5noAMqVlsMugDDCyyTSbA3Re5AkUrhvLVln0tSaFWglOw -x "${path_to_this_whole_four_line_signature_blob}"
1RUTRmVTMeKV5npGrKx1nqXCw5zeVHdtdYURB/KlyA/LMFgpNCs+SkW9a8N95d+U4AP1RJMi+krxU1A3Yux4bpwZNLvVBKy0wLgM=
2trusted comment: review ACK c0127439597ee9d09b8e117be7d6226a68b45721 🎑
3tf/up7OMkfp/8WkQfPI/JfkrY0jnqtfRAg2T09eD2yTw/BRFey4pUZPMlJu+Y93FYLisAf28Ld2wEeMnGisIBQ==