]> git.proxmox.com Git - mirror_qemu.git/commitdiff
tests/vm: Use python configured on build
authorWainer dos Santos Moschetta <wainersm@redhat.com>
Fri, 29 Mar 2019 21:08:00 +0000 (17:08 -0400)
committerAlex Bennée <alex.bennee@linaro.org>
Wed, 12 Jun 2019 16:53:22 +0000 (17:53 +0100)
Changed the vm-test makefile to execute python scripts
with the interpreter configured on build. This allows to
run vm-test targets properly in Linux distros with Python 3
only support.

Signed-off-by: Wainer dos Santos Moschetta <wainersm@redhat.com>
Message-Id: <20190329210804.22121-2-wainersm@redhat.com>
Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Tested-by: Philippe Mathieu-Daudé <philmd@redhat.com>
tests/vm/Makefile.include

index 992d823f6bd22d18984ae9a5bf41cb44a043eca0..6f82676306d982d1c617002e4fd2331c555ca4f7 100644 (file)
@@ -35,7 +35,7 @@ $(IMAGES_DIR)/%.img:  $(SRC_PATH)/tests/vm/% \
                        $(SRC_PATH)/tests/vm/Makefile.include
        @mkdir -p $(IMAGES_DIR)
        $(call quiet-command, \
-               $< \
+               $(PYTHON) $< \
                $(if $(V)$(DEBUG), --debug) \
                --image "$@" \
                --force \
@@ -46,7 +46,7 @@ $(IMAGES_DIR)/%.img:  $(SRC_PATH)/tests/vm/% \
 # Build in VM $(IMAGE)
 vm-build-%: $(IMAGES_DIR)/%.img
        $(call quiet-command, \
-               $(SRC_PATH)/tests/vm/$* \
+               $(PYTHON) $(SRC_PATH)/tests/vm/$* \
                $(if $(V)$(DEBUG), --debug) \
                $(if $(DEBUG), --interactive) \
                $(if $(J),--jobs $(J)) \