On 11/7/23 16:08, Daniel P. Berrangé wrote:
On Tue, Jul 11, 2023 at 04:01:42PM +0200, Philippe Mathieu-Daudé wrote:
Add the get_qemu_packages_from_lcitool_json() helper which return
such package list from a lcitool env var file in JSON format.

Suggested-by: Daniel P. Berrangé <berra...@redhat.com>
Signed-off-by: Philippe Mathieu-Daudé <phi...@linaro.org>
---
  tests/vm/Makefile.include | 4 ++++
  tests/vm/basevm.py        | 9 +++++++++
  2 files changed, 13 insertions(+)

diff --git a/tests/vm/Makefile.include b/tests/vm/Makefile.include
index c2a8ca1c17..b021b344b5 100644
--- a/tests/vm/Makefile.include
+++ b/tests/vm/Makefile.include
@@ -106,6 +106,10 @@ $(IMAGES_DIR)/%.img:       $(SRC_PATH)/tests/vm/% \
                --build-image $@, \
                "  VM-IMAGE $*")
+$(SRC_PATH)/tests/vm/%.json:
+       $(call quiet-command, \
+               make lcitool-refresh)

'lcitool-refresh' is something we only run explicitly when we
change something about the lcitool, and also isn't provided
to end users running from tarballs IIRC. So we shouldn't need
to wire it up to build targets, just commit its output JSON
file.

Right, simpler. Thanks!


Reply via email to