summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorNick Vatamaniuc <vatamane@apache.org>2018-10-03 15:11:57 -0400
committerNick Vatamaniuc <vatamane@apache.org>2018-11-26 17:49:33 -0500
commit9870a7c0aa1801bd30f19f8abfc3fbe8d45bae12 (patch)
tree57d1e1557f0fe99aecec4bc86cfb97fc88e513f4 /Makefile
parent2a3467d51415569e5f93c0cf4afbc5bbcd1ba17b (diff)
downloadcouchdb-9870a7c0aa1801bd30f19f8abfc3fbe8d45bae12.tar.gz
Run mango tests with Python 3
Before we were ignoring venv setup in the Makefile, so update the test runner to use that instead of pestering developers to install those dependencies by hand. Issue #1632
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile6
1 files changed, 5 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 554694eaf..019a76d29 100644
--- a/Makefile
+++ b/Makefile
@@ -280,7 +280,11 @@ build-test:
.PHONY: mango-test
# target: mango-test - Run Mango tests
mango-test: devclean all
- @cd src/mango && ../../dev/run -n 1 --admin=testuser:testpass nosetests
+ @cd src/mango && \
+ virtualenv --python=python3 venv && \
+ . ./venv/bin/activate && \
+ pip3 install -r requirements.txt
+ @cd src/mango && ../../dev/run -n 1 --admin=testuser:testpass ./venv/bin/nosetests
################################################################################
# Developing