From 9d96d7e81099fd0dbb7ff7dc6ff5535a4457a055 Mon Sep 17 00:00:00 2001 From: Ivan Efremov Date: Wed, 9 Jun 2021 22:44:54 +0300 Subject: Make pytest succeed even if python-3-pytest is not installed (#556) Fix for issue #542. Signed-off-by: Ivan Efremov --- Makefile | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'Makefile') 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 -- cgit v1.1