-
Notifications
You must be signed in to change notification settings - Fork 299
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
omnibus/cli: Exit with non-zero code on failure #822
Conversation
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.
This certainly mirrors the advice on the linked bug. @legal90 i presume you've verified that this works?
@thommay Yes, I've verified:
Example n.1 ( |
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 it be possible to add some Aruba coverage for this change?
https://github.com/chef/omnibus/tree/master/features/commands
@schisamo I would like to, but I don't know how to get it working. I've added this to Scenario: When the command contains extra arguments
When I run `omnibus build bacon eggs`
Then the output should contain:
"""
Usage: "omnibus build PROJECT"
"""
And the exit status should not be 0 But it fails with a weird error:
|
f66b617
to
f9c619e
Compare
Hi guys. I'm not interested in this PR anymore since I stopped working on Omnibus. |
Thanks @legal90! Appreciate the efforts you've put in to the project :) |
Kudos, SonarCloud Quality Gate passed! |
Signed-off-by: Mikhail Zholobov <[email protected]>
06dcaa2
to
b299483
Compare
Kudos, SonarCloud Quality Gate passed! |
thanks for the fix, @legal90. we'll take up adding cucumber tests in our backlog. |
Description
Fixes #821
Omnibus CLI inherits the base of Thor, which returns 0 for failed commands by default. Refer to rails/thor#244 for more details.