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

Wrong return status when processing multiple files #25

Closed
jspaleta opened this issue Oct 8, 2021 · 0 comments · Fixed by #26
Closed

Wrong return status when processing multiple files #25

jspaleta opened this issue Oct 8, 2021 · 0 comments · Fixed by #26
Assignees
Labels
bug Something isn't working

Comments

@jspaleta
Copy link
Contributor

jspaleta commented Oct 8, 2021

From customer report

Test setup

  1. set up first log file with matching lines
echo "error" > /tmp/test-logs/first-test.log
  1. setup second log file without matching lines
echo "success" > /tmp/test-logs/first-test.log
  1. run dry run command test using -p and -e option to make sure both files are found
./sensu-check-log -d /tmp/test-state-directory -p /tmp/test-logs -e "log$" -m "error" --disable-event-generation --dry-run ; echo $?
  1. return status should be non-zero but it is not
@jspaleta jspaleta added the bug Something isn't working label Oct 8, 2021
@jspaleta jspaleta self-assigned this Oct 8, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant