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

--test does not return a correct status #6278

Closed
fhriley opened this issue Aug 16, 2019 · 0 comments · Fixed by #6279
Closed

--test does not return a correct status #6278

fhriley opened this issue Aug 16, 2019 · 0 comments · Fixed by #6279
Labels
bug unexpected problem or unintended behavior
Milestone

Comments

@fhriley
Copy link
Contributor

fhriley commented Aug 16, 2019

I was attempting to add simple telegraf testing to my CI using the --test option. However, as you can see here, telegraf will not return an error if any of the input plugins fails. Since the Test() method doesn't return an error there, the telegraf command will also not return an error and will have a status code of 0, which will pass in CI.

fhriley added a commit to fhriley/telegraf that referenced this issue Aug 16, 2019
This flag will cause telegraf to have a non-zero exit status if any of the input plugins fail during test mode.
@danielnelson danielnelson added the bug unexpected problem or unintended behavior label Aug 16, 2019
fhriley added a commit to fhriley/telegraf that referenced this issue Aug 16, 2019
@danielnelson danielnelson added this to the 1.11.5 milestone Aug 16, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug unexpected problem or unintended behavior
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants