aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorCleber Rosa <crosa@redhat.com>2018-11-09 10:07:08 -0500
committerEduardo Habkost <ehabkost@redhat.com>2019-01-17 17:52:40 -0200
commit4061fcf288d146078bab13589064317c8264a1a3 (patch)
treec2729c6a5c35d133dff226e6cdb6061b5d7ff776 /tests
parent755ee70ff758584b8b6190b2cab4b480402af201 (diff)
downloadqemu-4061fcf288d146078bab13589064317c8264a1a3.zip
qemu-4061fcf288d146078bab13589064317c8264a1a3.tar.gz
qemu-4061fcf288d146078bab13589064317c8264a1a3.tar.bz2
check-venv: use recorded Python version
The current approach works fine, but it runs Python on every make command (even if it's not related to the venv usage). This is just an optimization, and not a change of behavior. Signed-off-by: Cleber Rosa <crosa@redhat.com> Message-Id: <20181109150710.31085-3-crosa@redhat.com> Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/Makefile.include3
1 files changed, 1 insertions, 2 deletions
diff --git a/tests/Makefile.include b/tests/Makefile.include
index f403a65..f8d4399 100644
--- a/tests/Makefile.include
+++ b/tests/Makefile.include
@@ -958,8 +958,7 @@ TESTS_RESULTS_DIR=$(BUILD_DIR)/tests/results
# information please refer to "avocado --help".
AVOCADO_SHOW=none
-PYTHON3 = $(shell $(PYTHON) -c 'import sys; print(1 if sys.version_info >= (3, 0) else 0)')
-ifeq ($(PYTHON3), 1)
+ifneq ($(findstring v2,"v$(PYTHON_VERSION)"),v2)
$(TESTS_VENV_DIR): $(TESTS_VENV_REQ)
$(call quiet-command, \
$(PYTHON) -m venv --system-site-packages $@, \