From 2abea080f617928af6386074e121aba33db2fe33 Mon Sep 17 00:00:00 2001 From: Adam Gandelman Date: Mon, 25 Aug 2014 12:48:10 -0700 Subject: [PATCH] Set PYTHONHASHSEED for venv tox environment We're seeing frequent failures of the docs Jenkins job that appear to be caused by the tox 1.7.2 upgrade and the migration to using PYTHONHASHSEED=random. This overrides the environment in the venv testenv to set PYTHONHASHSEED=0 and allows docs to build successfully. Note that we want to run our tests with a random seed if possible, so this avoids disabling it for the base testenv and only uses non-random for the testenv used by Jenkins for doc builds. Change-Id: I665703c9a002500bc90b90cd268bd3ccff4e3534 Closes-bug: 1361295 --- tox.ini | 1 + 1 file changed, 1 insertion(+) diff --git a/tox.ini b/tox.ini index f8e66abda4..76e94f49c1 100644 --- a/tox.ini +++ b/tox.ini @@ -35,6 +35,7 @@ commands = bash tools/config/generate_sample.sh -b . -p ironic -o etc/ironic [testenv:venv] +setenv = PYTHONHASHSEED=0 commands = {posargs} [flake8]