aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorIvan Efremov <i350300800e@gmail.com>2021-06-09 22:44:54 +0300
committerGitHub <noreply@github.com>2021-06-09 20:44:54 +0100
commit9d96d7e81099fd0dbb7ff7dc6ff5535a4457a055 (patch)
treed0a5e016f669fd40a627eb2c721d7842eaae61df /Makefile
parentb5598b4c4d79b06d047f003d663b7fe69a93334f (diff)
downloadlibvfio-user-9d96d7e81099fd0dbb7ff7dc6ff5535a4457a055.zip
libvfio-user-9d96d7e81099fd0dbb7ff7dc6ff5535a4457a055.tar.gz
libvfio-user-9d96d7e81099fd0dbb7ff7dc6ff5535a4457a055.tar.bz2
Make pytest succeed even if python-3-pytest is not installed (#556)
Fix for issue #542. Signed-off-by: Ivan Efremov <i350300800e@gmail.com>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile4
1 files changed, 4 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index dca2d38..0bbc813 100644
--- a/Makefile
+++ b/Makefile
@@ -105,6 +105,10 @@ else
pytest: all
@echo "=== Running python tests ==="
+ifeq ($(PYTESTCMD), /bin/true -rP --quiet)
+ @echo "No pytest-3 found in system. Try 'apt-get install python3-pytest' or 'which pytest-3'"
+ @echo "0 Python tests run"
+endif
$(PYTEST)
pytest-valgrind: all