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
returncode for rpminspect #39
Comments
This sounds like a bug. Can you paste the output from rpminspect? |
Hi sure, Here it is:
|
Yep, that's a bug. It's in main() in rpminspect.c. The success/failure of the run of the inspections is captured, but main() was always returning EXIT_SUCCESS. Ooops. :) |
dcantrell
added a commit
that referenced
this issue
Sep 12, 2019
The loop over the inspections was picking up the success or failure of the rpminspect run, but main() was always returning EXIT_SUCCESS. This was leftover from when I was originally stubbing out the program and never got around to making this be 'return ret;'
Fixed in master, thanks for the report! |
jeremycline
pushed a commit
to jeremycline/rpminspect
that referenced
this issue
Jul 13, 2020
The loop over the inspections was picking up the success or failure of the rpminspect run, but main() was always returning EXIT_SUCCESS. This was leftover from when I was originally stubbing out the program and never got around to making this be 'return ret;'
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi,
Is there a way to tell rpminspect to return a specific code in case of BAD status for at least one check ? From my tests rpminspect returns only 0 or 1 (when the package is not found for instance).
I want to use rpminspect in a CI job and I want to make the job fail when at least one check is marked as BAD. Checking the return code of rpminspect could be an easier check than going over the json results file to detect BAD status.
Maybe I missed an option.
Thanks
Fabien
The text was updated successfully, but these errors were encountered: