]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commitdiff
Enable random hash seeds
authorCedric Brandily <zzelle@gmail.com>
Tue, 26 May 2015 12:29:15 +0000 (14:29 +0200)
committerCedric Brandily <zzelle@gmail.com>
Sat, 30 May 2015 01:23:05 +0000 (01:23 +0000)
Neutron tests have been updated in order to support random hash seed. It
allows to remove PYTHONHASHSEED=0 in tox.ini and remove hashtest tox
environment.

Closes-Bug: #1348818
Change-Id: I1063304dda887eb82c0de8516d5a483fa8943fc1
Depends-On: I8408365825ec1e97a83c2181f38ec1f9468df91e
Depends-On: I1b2bd4100c19004f12822c414aefc86aae9849db
Depends-On: I5077764045a34d1be0e85bb4b80f3655e87692cc

tox.ini

diff --git a/tox.ini b/tox.ini
index 1c8761c7051788b386d25e728ec478f1154b3cdb..5d9710a9b7a8e4072943fb6f799b93582b68d062 100644 (file)
--- a/tox.ini
+++ b/tox.ini
@@ -7,7 +7,6 @@ skipsdist = True
 # Note the hash seed is set to 0 until neutron can be tested with a
 # random hash seed successfully.
 setenv = VIRTUAL_ENV={envdir}
-         PYTHONHASHSEED=0
 usedevelop = True
 install_command = pip install -U {opts} {packages}
 deps = -r{toxinidir}/requirements.txt
@@ -19,12 +18,6 @@ commands =
 # there is also secret magic in pretty_tox.sh which lets you run in a fail only
 # mode. To do this define the TRACE_FAILONLY environmental variable.
 
-[testenv:hashtest]
-# This is the same as default environment, but with a random PYTHONHASHSEED.
-# You can also specify a specific hashseed (for test repeatability) as follows:
-#   tox --hashseed 1235130571 -e hashtest
-setenv = VIRTUAL_ENV={envdir}
-
 [testenv:api]
 setenv = OS_TEST_PATH=./neutron/tests/api
          TEMPEST_CONFIG_DIR={env:TEMPEST_CONFIG_DIR:/opt/stack/tempest/etc}