[PATCH 4/4] Run both Python 2 and Python 3 tests for "make test"

Martin Kolman mkolman at redhat.com
Mon Mar 30 13:38:28 UTC 2015


Signed-off-by: Martin Kolman <mkolman at redhat.com>
---
 Makefile | 11 ++++++++---
 1 file changed, 8 insertions(+), 3 deletions(-)

diff --git a/Makefile b/Makefile
index 9e1ba0a..18f5a97 100644
--- a/Makefile
+++ b/Makefile
@@ -5,7 +5,9 @@ TAG=r$(VERSION)-$(RELEASE)
 
 PREFIX=/usr
 
-PYTHON=python
+PYTHON2=python2
+PYTHON3=python3
+PYTHON=$(PYTHON2)
 
 TESTSUITE:=tests/baseclass.py
 
@@ -22,8 +24,11 @@ clean:
 	$(PYTHON) setup.py -q clean --all
 
 test:
-	@echo "*** Running unittests ***"
-	PYTHONPATH=. $(PYTHON) $(TESTSUITE) -v
+	@echo "*** Running unittests with Python 2 ***"
+	PYTHONPATH=. $(PYTHON2) $(TESTSUITE) -v
+
+	@echo "*** Running unittests with Python 3 ***"
+	PYTHONPATH=. $(PYTHON3) $(TESTSUITE) -v
 
 install:
 	$(PYTHON) setup.py install --root=$(DESTDIR)
-- 
2.1.0



More information about the anaconda-patches mailing list