Skip to content
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

Version option should return 0 rather than 1 #327

Merged
merged 1 commit into from
Aug 12, 2024

Conversation

liutgnu
Copy link
Contributor

@liutgnu liutgnu commented Aug 12, 2024

Previously invoke irqbalance with --version options, the return value is 1 instead of 0:

$ irqbalance --version
irqbalance version 1.9.4
$ echo $?
1

It is unexpected because irqbalance have successfully returned the version string with no errors, so 0 should be returned instead of 1. This will confuse some automation tests.

This patch will make irqbalance return the correct value for version option.

Previously invoke irqbalance with --version options, the return value
is 1 instead of 0:

$ irqbalance --version
irqbalance version 1.9.4
$ echo $?
1

It is unexpected because irqbalance have successfully returned the
version string with no errors, so 0 should be returned instead of 1.
This will confuse some automation tests.

This patch will make irqbalance return the correct value for version
option.

Signed-off-by: Tao Liu <ltao@redhat.com>
@nhorman nhorman merged commit a350549 into Irqbalance:master Aug 12, 2024
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants