avocado_qemu/__init__.py: factor out the qemu-img finding
authorKautuk Consul <kconsul@linux.vnet.ibm.com>
Mon, 24 Apr 2023 09:22:42 +0000 (10:22 +0100)
committerAlex Bennée <alex.bennee@linaro.org>
Thu, 27 Apr 2023 13:58:23 +0000 (14:58 +0100)
commitab8eff7c1c4d95b841b1a318e1b406b8cf759936
treea0bc760495c66992ec5d5a767f45a92b772e612c
parente354d99afc5dacb8f823cc40032af22f641cf4ea
avocado_qemu/__init__.py: factor out the qemu-img finding

Factor out the code that finds the qemu-img binary in the
QemuSystemTest class and create a new get_qemu_img() function
with it. This function will get called also from the new code
in tuxrun_baselines.py avocado test-case.

Signed-off-by: Kautuk Consul <kconsul@linux.vnet.ibm.com>
Reviewed-by: Harsh Prateek Bora <harshpb@linux.ibm.com>
Suggested-by: Thomas Huth <thuth@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Message-Id: <20230421042322.684093-2-kconsul@linux.vnet.ibm.com>
Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Message-Id: <20230424092249.58552-12-alex.bennee@linaro.org>
tests/avocado/avocado_qemu/__init__.py