OSDN Git Service

run-coverity-scan: support --update-tools-only --docker
authorPaolo Bonzini <pbonzini@redhat.com>
Wed, 22 Apr 2020 14:38:57 +0000 (10:38 -0400)
committerPaolo Bonzini <pbonzini@redhat.com>
Wed, 10 Jun 2020 16:09:34 +0000 (12:09 -0400)
commitfbb84f074174aa3bb6fde4a63b569a1f7e64f264
tree52956f9fe3d2e79b9f0903ab6d43cda1c50b3cc8
parent2e90470e90d660ed03321ba677fba2d5208bc6e4
run-coverity-scan: support --update-tools-only --docker

Just build the container when run-coverity-scan is invoked with
--update-tools-only --docker.  This requires moving the "docker build"
logic into the update_coverity_tools function.

The only snag is that --update-tools-only --docker requires access to
the dockerfile.  For now just report an error for --src-tarball, and
"docker build" will fail if not in a source tree.  Another possibility
could be to host our container images on a public registry, and use
"FROM qemu:fedora" to make the Dockerfile small enough that it can be
included directly in the run-coverity-scan script.

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