wallet: Unify wallet directory lock error message#20094
wallet: Unify wallet directory lock error message#20094hebasto wants to merge 2 commits intobitcoin:masterfrom
Conversation
01df47b to
8598613
Compare
|
Concept ACK. Though, this changes a translation string. |
| exp_stderr = r"Error: Error initializing wallet database environment \"\S+competing_walletdir\"!" | ||
| self.nodes[1].assert_start_raises_init_error(['-walletdir=' + competing_wallet_dir], exp_stderr, match=ErrorMatch.PARTIAL_REGEX) | ||
| exp_stderr = "Error: Cannot obtain a lock on wallet directory {0}. {1} is probably already running.".format(competing_wallet_dir, self.config['environment']['PACKAGE_NAME']) | ||
| self.nodes[1].assert_start_raises_init_error(['-walletdir=' + competing_wallet_dir], exp_stderr) |
There was a problem hiding this comment.
Would also be good to temporarily enable the functional tests on appveyor again to see if the full path works on windows as well
There was a problem hiding this comment.
There was a problem hiding this comment.
AssertionError: [node 1] Expected message
"Error: Cannot obtain a lock on wallet directory C:\Users\appveyor\AppData\Local\Temp\1\test_runner_₿_🏃_20201007_132949\wallet_multiwallet_117\competing_walletdir. Bitcoin Core is probably already running." does not fully match stderr:
"Error: Cannot obtain a lock on wallet directory C:/Users\appveyor\AppData\Local\Temp\1\test_runner_₿_🏃_20201007_132949\wallet_multiwallet_117\competing_walletdir. Bitcoin Core is probably already running."
There was a problem hiding this comment.
https://ci.appveyor.com/project/DrahtBot/bitcoin/builds/35676234: wallet_multiwallet.py and feature_filelock.py passed.
@MarcoFalke
Could the "[DO NOT MERGE] ci: Temporarily enable the functional tests on AppVeyor" commit be dropped?
|
The following sections might be updated with supplementary metadata relevant to reviewers and maintainers. ConflictsReviewers, 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. |
|
Approach ACK |
5a69040 to
33d49d7
Compare
|
Fixed Windows paths. |
|
Rebased 33d49d7 -> 76ab0e7 (pr20094.06 -> pr20094.07) due to the conflict with #19077. |
This change removes redundant LogPrintf call, and unifies error message wording with the similar datadir lock error message.
|
Rebased 76ab0e7 -> 7504cac (pr20094.07 -> pr20094.08) due to the conflict with #20186. |
|
This does not make sense with SQLite wallets. |
On master (875e1cc) a redundant log message is printed, and it uses "bitcoin" instead of
PACKAGE_NAME:This PR removes redundant
LogPrintfcall, and unifies error message wording with the similar datadir lock error message: