run-coverity-scan: add --check-upload-only option
authorPaolo Bonzini <pbonzini@redhat.com>
Mon, 4 Mar 2024 18:06:57 +0000 (13:06 -0500)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 8 Mar 2024 18:08:23 +0000 (19:08 +0100)
commit2f3e5e4c08c43daeec144adeeae9138176039b60
treebb0ab0741ea86a429ed952a333c9380e40e981da
parent9ed7c6dd9fa100b77ad8fd8c4af1b810b0bee957
run-coverity-scan: add --check-upload-only option

Add an option to check if upload is permitted without actually
attempting a build.  This can be useful to add a third outcome
beyond success and failure---namely, a CI job can self-cancel
if the uploading quota has been reached.

There is a small change here in that a failure to do the upload
check changes the exit code from 1 to 99.  99 was chosen because
it is what Autotools and Meson use to represent a problem in the
setup (as opposed to a failure in the test).

Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
scripts/coverity-scan/run-coverity-scan