summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWainer dos Santos Moschetta2019-03-29 22:08:00 +0100
committerAlex Bennée2019-06-12 18:53:22 +0200
commitb0040fa17bcf0e51d4a599ee82108ace830d4eac (patch)
tree4c4d0d2a52655818df61b90d7607cf5b4aca435d
parent.travis.yml: add clang ubsan job (diff)
downloadqemu-b0040fa17bcf0e51d4a599ee82108ace830d4eac.tar.gz
qemu-b0040fa17bcf0e51d4a599ee82108ace830d4eac.tar.xz
qemu-b0040fa17bcf0e51d4a599ee82108ace830d4eac.zip
tests/vm: Use python configured on build
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>
-rw-r--r--tests/vm/Makefile.include4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/vm/Makefile.include b/tests/vm/Makefile.include
index 992d823f6b..6f82676306 100644
--- a/tests/vm/Makefile.include
+++ b/tests/vm/Makefile.include
@@ -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)) \