]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commitdiff
Actually allow to pass TRACE_FAILONLY to ostestr
authorIhar Hrachyshka <ihrachys@redhat.com>
Wed, 10 Jun 2015 11:10:54 +0000 (13:10 +0200)
committerIhar Hrachyshka <ihrachys@redhat.com>
Wed, 10 Jun 2015 11:10:54 +0000 (13:10 +0200)
The comment below suggests to use TRACE_FAILONLY to fail quickly when
running unit tests, while tox 2.0 does not allow to pass envvars from
the cli caller unless they are explicitly mentioned in passenv=
directive.

Change-Id: I6861498e7609b0c21fad844009420ea9734e2352

tox.ini

diff --git a/tox.ini b/tox.ini
index 8f9cf95dc9db04ec21ac212bca605699a0bd623b..ab568012d70d3385f7616247cc0aab4809b76882 100644 (file)
--- a/tox.ini
+++ b/tox.ini
@@ -5,6 +5,7 @@ skipsdist = True
 
 [testenv]
 setenv = VIRTUAL_ENV={envdir}
+passenv = TRACE_FAILONLY
 usedevelop = True
 install_command = pip install -U {opts} {packages}
 deps = -r{toxinidir}/requirements.txt