Test for nose achievement plugin before using it.

This commit is contained in:
Bastian Kleineidam 2010-03-21 20:03:41 +01:00
parent 554d273b08
commit 728d5fe24d
2 changed files with 5 additions and 2 deletions

View File

@ -7,6 +7,11 @@ NUMCPUS := $(shell grep -c '^process' /proc/cpuinfo)
TESTS ?= tests/ TESTS ?= tests/
# set test options, eg. to "--nologcapture" # set test options, eg. to "--nologcapture"
TESTOPTS= 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
all: all:

View File

@ -1,2 +0,0 @@
[nosetests]
;with-achievements=1