]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commitdiff
Revert "Revert "Revert "Remove TEMPEST_CONFIG_DIR in the api tox env"""
authorIhar Hrachyshka <ihrachys@redhat.com>
Tue, 5 Jan 2016 18:36:42 +0000 (19:36 +0100)
committerIhar Hrachyshka <ihrachys@redhat.com>
Wed, 6 Jan 2016 16:14:26 +0000 (16:14 +0000)
This reverts commit be63289c273fa02159a6958e0b456d5fda217431.

Yes, it's a third order revert. Ain't it cool?

Now that tox 2.3.1 is used in gate, and it is expected to fix the issue
that we originally hacked around here, let's revert to the previous
code.

For the least, it makes API target executable locally without the need
to set TEMPEST_CONFIG_DIR in the external environment.

Also bump minimal tox version to 2.3 to avoid users hitting the old
issue with their tox 2.2.* package.

Change-Id: Ic64cb466d117ad39436cb1d079c8f5657260da2c
Related-Bug: #1515335

tox.ini

diff --git a/tox.ini b/tox.ini
index 9710cb9a521876644d96ebbd82f49857e3fed9f7..449853bcaef803bffa52d2fe9bf118161f1d0b48 100644 (file)
--- a/tox.ini
+++ b/tox.ini
@@ -1,6 +1,6 @@
 [tox]
 envlist = docs,py34,py27,pep8
-minversion = 2.0
+minversion = 2.3
 skipsdist = True
 
 [testenv]
@@ -24,9 +24,8 @@ basepython = python2.7
 passenv = {[testenv]passenv} TEMPEST_CONFIG_DIR
 setenv = {[testenv]setenv}
          OS_TEST_PATH=./neutron/tests/api
+         TEMPEST_CONFIG_DIR={env:TEMPEST_CONFIG_DIR:/opt/stack/tempest/etc}
          OS_TEST_API_WITH_REST=1
-# If you are running the tests locally you should set the env variable
-# TEMPEST_CONFIG_DIR=/opt/stack/tempest/etc
 
 [testenv:api-constraints]
 basepython = {[testenv:api]basepython}