tests/vm: Allow to set qemu-img path
authorWainer dos Santos Moschetta <wainersm@redhat.com>
Thu, 14 Nov 2019 13:42:46 +0000 (08:42 -0500)
committerAlex Bennée <alex.bennee@linaro.org>
Wed, 18 Dec 2019 20:17:33 +0000 (20:17 +0000)
commit1e48931c0c0c29a30342614edb772fad8e4cff98
tree726dd0162e1572597dab113386660cd9562ca064
parentafc3a8f9f1df09c091f9903eaef82b35c152cacf
tests/vm: Allow to set qemu-img path

By default VM build test use qemu-img from system's PATH to
create the image disk. Due the lack of qemu-img on the system
or the desire to simply use a version built with QEMU, it would
be nice to allow one to set its path. So this patch makes that
possible by reading the path to qemu-img from QEMU_IMG if set,
otherwise it fallback to default behavior.

Signed-off-by: Wainer dos Santos Moschetta <wainersm@redhat.com>
Message-Id: <20191114134246.12073-2-wainersm@redhat.com>
Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
docs/devel/testing.rst
tests/vm/Makefile.include
tests/vm/basevm.py
tests/vm/centos
tests/vm/fedora
tests/vm/freebsd
tests/vm/netbsd
tests/vm/openbsd
tests/vm/ubuntu.i386