Blame SOURCES/Makefile_enable_coverage_for_testsuite.patch

23f96d
--- pyparted-3.9/Makefile.orig	2014-02-13 10:00:59.129864074 -0500
23f96d
+++ pyparted-3.9/Makefile	2014-02-13 10:13:52.547882402 -0500
23f96d
@@ -37,8 +37,11 @@
23f96d
 	@$(PYTHON) setup.py build
23f96d
 
23f96d
 test: all
23f96d
+	@which coverage || (echo "*** Please install python-coverage ***"; exit 2)
23f96d
+	@echo "*** Running unittests with coverage ***"
23f96d
 	@env PYTHONPATH=$$(find $$(pwd) -name "*.so" | head -n 1 | xargs dirname) \
23f96d
-	$(PYTHON) -m unittest discover -v
23f96d
+	coverage run --branch -m unittest discover -v
23f96d
+	coverage report --include='build/*'
23f96d
 
23f96d
 check: all
23f96d
 	env PYTHONPATH=$$(find $$(pwd) -name "*.so" | head -n 1 | xargs dirname) \