Enable hash randomization in unit tests

This is needed to ensure that unit tests match how
deployed environments run.

Related-Bug: #1348818
Related-Bug: #1658725
Related-Bug: #1715915

Depends-On: I91a53fdef98c9a14ccc536403063e228e99d6971
Depends-On: Ie548c90f5657e5270fd966207f453d5211e21867
Depends-On: I754d48d8bc4081b96fdf90465c4897d0fadd6262
Depends-On: Ia8762aff6fd9954d350310b4c68ee4fe94de68bf
Depends-On: I6fe0ae5da270d9c77cb248551dcb32a5c063977a
Depends-On: I96b9b413387f2ef02ea7ccfb6e676cad0b87c6f1
Depends-On: Icdde5e3f213adfe4893d1b9e8f2bfe4f61704037
Depends-On: I29a874ebe0ebaeca58b428faa0bab50482baf6f1
Depends-On: I30817ae767e08c45f9540b19e922864fe2f7a9c2
Depends-On: I281ad59fa518f936aa8d1b518acf61800ba949f5
Depends-On: I0abd0415306c0c0544eb5d9a6ed08640ff6bb0cf
Depends-On: I599b585444cbd51182d9f17fddd97bd91637e1e3
Depends-On: I6e4093ca8e79128ed23a4d5068e5d2870e16332c
Depends-On: I574dca83a971e746a54895a87e394befda0ccdcf
Depends-On: Id5a961c66a62e289a96daa7437374768ef407bb6
Depends-On: Ibc6c20e6ffce58c6bbef3155f73e54909d76e132
Change-Id: I4c7396f9d8e58ac8420754503f8ed60cd7473426
This commit is contained in:
Eric Harney 2017-05-17 11:29:58 -04:00
parent 5abef92e08
commit 52965d8974

View File

@ -4,10 +4,7 @@ skipsdist = True
envlist = py35,py27,compliance,pep8
[testenv]
# Note the hash seed is set to 0 until cinder can be tested with a
# random hash seed successfully.
setenv = VIRTUAL_ENV={envdir}
PYTHONHASHSEED=0
PYTHONWARNINGS=default::DeprecationWarning
OS_STDOUT_CAPTURE=1
OS_STDERR_CAPTURE=1