-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
quadlet should exit non zero on failures #18828
Conversation
c617d6c
to
2115af1
Compare
@@ -511,7 +526,7 @@ var _ = Describe("quadlet system generator", func() { | |||
}) | |||
|
|||
DescribeTable("Running quadlet test case", | |||
func(fileName string) { | |||
func(fileName string, exitCode int, errString string) { |
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.
I think it will be cleaner to move the actual implementation of this function to an external function and then split between the test cases into two tables. The first will be remain as before and func
will pass hardcoded 0 ""
, while the second will require the exit code and string from the entries.
@rhatdan on repush, can you add a |
786b89e
to
27fe927
Compare
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.
Just some final nits on error handling in main().
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.
LGTM, thank you!
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: rhatdan, vrothberg The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
@ygalblum PTanotherL |
LGTM for the code but the tests are unhappy |
f37ec00
to
8c37e62
Compare
@rhatdan something broke all the Quadlet e2e tests |
3391d16
to
acb9ebb
Compare
Fixes: containers#18778 Signed-off-by: Daniel J Walsh <[email protected]>
/lgtm |
Does this PR introduce a user-facing change?
Fixes: #18778