[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 3/9] tests: use python3 as the python executable name
From: |
John Snow |
Subject: |
[PATCH 3/9] tests: use python3 as the python executable name |
Date: |
Wed, 25 May 2022 20:09:15 -0400 |
Use "python3" instead of "python" as per PEP0394:
https://peps.python.org/pep-0394/
This should always be defined (in a venv, at least!), matching the
preferred python shebang of "#!/usr/bin/env python3".
Signed-off-by: John Snow <jsnow@redhat.com>
---
tests/Makefile.include | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tests/Makefile.include b/tests/Makefile.include
index 146aaa96a00..f68adda0650 100644
--- a/tests/Makefile.include
+++ b/tests/Makefile.include
@@ -89,7 +89,7 @@ TARGETS=$(patsubst libqemu-%.fa, %, $(filter libqemu-%.fa,
$(ninja-targets)))
TESTS_VENV_DIR=$(BUILD_DIR)/tests/venv
TESTS_VENV_REQ=$(SRC_PATH)/tests/requirements.txt
TESTS_RESULTS_DIR=$(BUILD_DIR)/tests/results
-TESTS_PYTHON=$(TESTS_VENV_DIR)/bin/python
+TESTS_PYTHON=$(TESTS_VENV_DIR)/bin/python3
ifndef AVOCADO_TESTS
AVOCADO_TESTS=tests/avocado
endif
--
2.34.1
- [PATCH 0/9] tests, python: prepare to expand usage of test venv, John Snow, 2022/05/25
- [PATCH 1/9] python: update for mypy 0.950, John Snow, 2022/05/25
- [PATCH 2/9] tests: add "TESTS_PYTHON" variable to Makefile, John Snow, 2022/05/25
- [PATCH 3/9] tests: use python3 as the python executable name,
John Snow <=
- [PATCH 4/9] tests: silence pip upgrade warnings during venv creation, John Snow, 2022/05/25
- [PATCH 5/9] tests: add quiet-venv-pip macro, John Snow, 2022/05/25
- Re: [PATCH 5/9] tests: add quiet-venv-pip macro, Paolo Bonzini, 2022/05/26
- [PATCH 6/9] tests: install "qemu" namespace package into venv, John Snow, 2022/05/25