Skip to content

util: improve bitcoin-wallet exit codes - #26067

Merged
maflcko merged 1 commit into
bitcoin:masterfrom
maflcko:2209-wallet-exit-🛶
Sep 20, 2022

Hidden character warning

The head ref may contain hidden characters: "2209-wallet-exit-\ud83d\udef6"
Merged

util: improve bitcoin-wallet exit codes#26067
maflcko merged 1 commit into
bitcoin:masterfrom
maflcko:2209-wallet-exit-🛶

Conversation

@maflcko

@maflcko maflcko commented Sep 12, 2022

Copy link
Copy Markdown
Member

Refactors bitcoin-wallet so that it doesn't return a non-zero exit code by default, and makes the option handling more inline with the other binaries. i.e outputting Error: too few parameters if you don't pass any options.

Fixing this means we can check the process output in gen-manpages.py; which addresses the remaining review comment from #24263.

@luke-jr luke-jr left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

utACK

@maflcko
maflcko merged commit d76a423 into bitcoin:master Sep 20, 2022
@maflcko
maflcko deleted the 2209-wallet-exit-🛶 branch September 20, 2022 07:57
abspath = os.path.join(builddir, relpath)
try:
r = subprocess.run([abspath, '--version'], stdout=subprocess.PIPE, universal_newlines=True)
r = subprocess.run([abspath, "--version"], stdout=subprocess.PIPE, check=True, universal_newlines=True)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why change single quote to double quote? Is it a coding style in the Bitcoin Core?

@Riahiamirreza

Copy link
Copy Markdown
Contributor

As far as I could grasp the codebase, ACK.

@bitcoin bitcoin locked and limited conversation to collaborators Sep 23, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants