From 2f05a71c61f919657a9af20809cb47430bed01ad Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lubom=C3=ADr=20Sedl=C3=A1=C5=99?= Date: Thu, 20 Jun 2019 13:20:44 +0200 Subject: [PATCH] Allow customizing nosetests command MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit In some environments there may not be a version of the command without a version. In such case it's quite convenient to be able to specify what is the actual name of the nosetests command. Signed-off-by: Lubomír Sedlář --- Makefile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 90e8a087..5995944e 100644 --- a/Makefile +++ b/Makefile @@ -9,6 +9,8 @@ PKGRPMFLAGS=--define "_topdir ${PWD}" --define "_specdir ${PWD}" --define "_sour RPM="noarch/${PKGNAME}-$(VERSION)-$(RELEASE).noarch.rpm" SRPM="${PKGNAME}-$(VERSION)-$(RELEASE).src.rpm" +NOSE=nosetests + all: help @@ -93,10 +95,10 @@ clean: test: - nosetests --exe $(NOSE_OPTS) + $(NOSE) --exe $(NOSE_OPTS) test-coverage: - nosetests --exe --with-cov --cov-report html --cov-config tox.ini $(NOSE_OPTS) + $(NOSE) --exe --with-cov --cov-report html --cov-config tox.ini $(NOSE_OPTS) test-data: ./tests/data/specs/build.sh