-
Notifications
You must be signed in to change notification settings - Fork 273
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
fix: return an error if the task fails #1669
Conversation
c378a4d
to
b41b612
Compare
b41b612
to
999f802
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.
Looks good to me, thanks!
999f802
to
46c4af8
Compare
In trying to get the tests to pass, I've removed changes to the Also, I had a lot of project changes, so instead I just made a new project and use that in my unit tests. |
I think the error handling at the command level might not be correct. Could you take a second look, @thor?
Whoops, wrong Thor. I was referring to @thsig. |
Thanks for the PR, @mitchfriedman! A few things I missed when reviewing this earlier:
|
@thsig Thanks for the review and feedback. I've addressed your feedback about using a I've also added a helper function There were 2 issues with this:
|
f18fac7
to
f77c5f1
Compare
What this PR does / why we need it:
This makes sure that garden doesn't return a 0 exit code if a run test fails.
In our CI, we'd like to run
garden run test
so that we get the streamed output from the test, instead ofgarden test
where it suppresses the output as it executes.If the test fails, garden needs to fail with a non-zero status code so our CI run fails as well.
Which issue(s) this PR fixes:
Fixes #1659