]> xenbits.xensource.com Git - osstest/openstack-nova.git/commitdiff
Always use python2.7 for functional tests
authormelanie witt <melwittt@gmail.com>
Tue, 11 Oct 2016 23:59:25 +0000 (23:59 +0000)
committermelanie witt <melwittt@gmail.com>
Wed, 12 Oct 2016 00:02:50 +0000 (00:02 +0000)
The functional testenv doesn't work with python 3.x on our codebase.
If someone is on a platform that defaults to python => python3,
functional tests will fail for them.

Closes-Bug: #1632521

Change-Id: I7bf6653f55c10d0a4f75054e519edf7da19c5c09

tox.ini

diff --git a/tox.ini b/tox.ini
index 3fcabbf47eba58108a5d4b3e8cce992e0f9476c9..d5530ba93662399f0ca9770d00d7856698b72652 100644 (file)
--- a/tox.ini
+++ b/tox.ini
@@ -36,6 +36,9 @@ commands =
   bash -c '! find doc/ -type f -name *.json | xargs -t -n1 python -m json.tool 2>&1 > /dev/null | grep -B1 -v ^python'
 
 [testenv:functional]
+# TODO(melwitt): This can be removed when functional tests can be run
+# with python 3.x
+basepython = python2.7
 usedevelop = True
 setenv = VIRTUAL_ENV={envdir}
        OS_TEST_PATH=./nova/tests/functional