-
Notifications
You must be signed in to change notification settings - Fork 37.7k
wallet: Unify wallet directory lock error message #20094
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Lol that's fun ^
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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
LogPrintf
call, and unifies error message wording with the similar datadir lock error message: