mirror of
https://github.com/Hopiu/linkchecker.git
synced 2026-05-13 00:53:11 +00:00
Test for nose achievements plugin before using it.
This commit is contained in:
parent
c4c098bd83
commit
1bff1c367b
2 changed files with 5 additions and 3 deletions
5
Makefile
5
Makefile
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -11,6 +11,3 @@ provides = linkchecker
|
|||
group = Web/Utilities
|
||||
install_script = install-rpm.sh
|
||||
python = python
|
||||
|
||||
[nosetests]
|
||||
;with-achievements=1
|
||||
|
|
|
|||
Loading…
Reference in a new issue