Test for nose achievement plugin before using it.
This commit is contained in:
parent
554d273b08
commit
728d5fe24d
5
Makefile
5
Makefile
|
@ -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:
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue