Test for nose achievements plugin before using it.

This commit is contained in:
Bastian Kleineidam 2010-03-21 20:11:49 +01:00
parent c4c098bd83
commit 1bff1c367b
2 changed files with 5 additions and 3 deletions

View file

@ -10,6 +10,11 @@ PY_FILES_DIRS:=linkcheck tests *.py linkchecker cgi-bin config doc
TESTS ?= tests/
# set test options, eg. to "--nologcapture"
TESTOPTS=
# test for nose achievements plugin and use it if available
NOSE_ACHIEVEMENTS:=$(shell nosetests --plugins | grep achievements)
ifeq ($(strip $(NOSE_ACHIEVEMENTS)),Plugin achievements)
TESTOPTS += --with-achievements
endif
PAGER ?= less
# build dir for debian package
BUILDDIR:=$(HOME)/packages/official

View file

@ -11,6 +11,3 @@ provides = linkchecker
group = Web/Utilities
install_script = install-rpm.sh
python = python
[nosetests]
;with-achievements=1