Enable random hash seeds
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
This commit is contained in:
parent
a225e28701
commit
ef5b4f5274
7
tox.ini
7
tox.ini
|
@ -7,7 +7,6 @@ skipsdist = True
|
||||||
# Note the hash seed is set to 0 until neutron can be tested with a
|
# Note the hash seed is set to 0 until neutron can be tested with a
|
||||||
# random hash seed successfully.
|
# random hash seed successfully.
|
||||||
setenv = VIRTUAL_ENV={envdir}
|
setenv = VIRTUAL_ENV={envdir}
|
||||||
PYTHONHASHSEED=0
|
|
||||||
usedevelop = True
|
usedevelop = True
|
||||||
install_command = pip install -U {opts} {packages}
|
install_command = pip install -U {opts} {packages}
|
||||||
deps = -r{toxinidir}/requirements.txt
|
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
|
# 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.
|
# 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]
|
[testenv:api]
|
||||||
setenv = OS_TEST_PATH=./neutron/tests/api
|
setenv = OS_TEST_PATH=./neutron/tests/api
|
||||||
TEMPEST_CONFIG_DIR={env:TEMPEST_CONFIG_DIR:/opt/stack/tempest/etc}
|
TEMPEST_CONFIG_DIR={env:TEMPEST_CONFIG_DIR:/opt/stack/tempest/etc}
|
||||||
|
|
Loading…
Reference in New Issue