summaryrefslogtreecommitdiff
path: root/tox.ini
diff options
context:
space:
mode:
authorJohn L. Villalovos <john.l.villalovos@intel.com>2017-12-01 09:53:15 -0800
committerJohn L. Villalovos <john.l.villalovos@intel.com>2017-12-01 10:00:48 -0800
commit1128a26cb4a7a56e735f862fe150f307d115e9be (patch)
treed126dce1f4b7b5798f790881ce688c115c13f18a /tox.ini
parent831576c906c74519babb2751a19673e30736a9af (diff)
downloadironic-python-agent-1128a26cb4a7a56e735f862fe150f307d115e9be.tar.gz
tox: Don't create *.pyc files during unit/functional tests
Don't create *.pyc files during unit/functional tests as they just add cruft during tox runs. This is similar to what we already do in openstack/ironic Change-Id: Id4364519903db20308f78f2aaeca3ad2d37b298a
Diffstat (limited to 'tox.ini')
-rw-r--r--tox.ini2
1 files changed, 2 insertions, 0 deletions
diff --git a/tox.ini b/tox.ini
index 92c29e02..4e2e5496 100644
--- a/tox.ini
+++ b/tox.ini
@@ -8,6 +8,7 @@ usedevelop = True
install_command = pip install -U -c{env:UPPER_CONSTRAINTS_FILE:https://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt} {opts} {packages}
setenv =
VIRTUAL_ENV={envdir}
+ PYTHONDONTWRITEBYTECODE = 1
OS_TEST_PATH=./ironic_python_agent/tests/unit
LANGUAGE=en_US
LC_ALL=en_US.utf-8
@@ -20,6 +21,7 @@ usedevelop = True
# of seconds to wait for the agent to come alive during functional testing.
setenv =
VIRTUAL_ENV={envdir}
+ PYTHONDONTWRITEBYTECODE = 1
OS_TEST_PATH=./ironic_python_agent/tests/functional
TEST_PORT=9999
IPA_WAIT_TRIES=100