summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorClark Boylan <clark.boylan@gmail.com>2014-08-13 16:11:03 -0700
committerIhar Hrachyshka <ihrachys@redhat.com>2014-08-21 17:00:15 +0200
commit889bdf712ec25e4afd21ce42b6271e0638bb0607 (patch)
tree221546fdf9bd316d92de4684524d73f1d1e8d7a2
parent7e3c27fb50d99c23d35f7e909086ee06416adc1d (diff)
downloadoslo-incubator-889bdf712ec25e4afd21ce42b6271e0638bb0607.tar.gz
Set python hash seed to 0 in tox.ini
New tox (>=1.7.0) sets a random python hash seed by default. This is generally good for testing because it will help keep projects working regardless of the hash seed, but incubator unittests don't currently pass with a random hash seed so set it to the python default seed. This change will allow us to use new tox again and remove the restriction on tox<=1.6.1 to run unittests. Redundant setenvs for specific test envs are removed to prevent them from overriding the PYTHONHASHSEED value. Note this change will need to be backported to the stable branches to keep unittests there working with new tox as well. Conflicts: tox.ini Change-Id: I8926ff3157f86ea2a28f558420dbb27f0a09746c (cherry picked from commit ebbdcad9d23e6fd7e2e9328a0ef270f369a08c86)
-rw-r--r--tox.ini2
1 files changed, 1 insertions, 1 deletions
diff --git a/tox.ini b/tox.ini
index 44191d02..07b8dc5b 100644
--- a/tox.ini
+++ b/tox.ini
@@ -8,6 +8,7 @@ usedevelop = True
install_command = pip install -U {opts} {packages}
sitepackages = False
setenv = VIRTUAL_ENV={envdir}
+ PYTHONHASHSEED=0
deps = -r{toxinidir}/requirements.txt
-r{toxinidir}/test-requirements.txt
commands =
@@ -28,7 +29,6 @@ commands = python ./tools/lint.py ./openstack
python ./tools/lint.py ./tests
[testenv:cover]
-setenv = VIRTUAL_ENV={envdir}
commands =
python tools/patch_tox_venv.py
python setup.py testr --coverage --testr-args='{posargs}'