From 728d5fe24dec4e0f98ce1f29294055b63e792d04 Mon Sep 17 00:00:00 2001 From: Bastian Kleineidam Date: Sun, 21 Mar 2010 20:03:41 +0100 Subject: [PATCH] Test for nose achievement plugin before using it. --- Makefile | 5 +++++ setup.cfg | 2 -- 2 files changed, 5 insertions(+), 2 deletions(-) delete mode 100644 setup.cfg diff --git a/Makefile b/Makefile index ab17662..8f7384a 100644 --- a/Makefile +++ b/Makefile @@ -7,6 +7,11 @@ NUMCPUS := $(shell grep -c '^process' /proc/cpuinfo) 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 all: diff --git a/setup.cfg b/setup.cfg deleted file mode 100644 index a89e77c..0000000 --- a/setup.cfg +++ /dev/null @@ -1,2 +0,0 @@ -[nosetests] -;with-achievements=1