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>
This commit is contained in:
Wainer dos Santos Moschetta 2019-03-29 17:08:00 -04:00 committed by Alex Bennée
parent 7831147edf
commit b0040fa17b

View File

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