From 3ded0dbba567e81f49c1b82c1b03853486d1da74 Mon Sep 17 00:00:00 2001 From: Jacek Tomasiak Date: Fri, 26 Feb 2016 23:14:54 +0100 Subject: [PATCH] Disable tempest tox venv recreation in OFFLINE mode Setting OFFLINE=True in local.conf should enable stack.sh to run multiple times without an internet connection. This was broken for some cases when recreation of tox venv for tempest was forced in lib/tempest. This change makes recreation of tox venv enabled only when OFFLINE mode is disabled. Change-Id: I2bf6caf60038a3690378eead905b35e9175ac356 Closes-Bug: #1550537 --- lib/tempest | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/tempest b/lib/tempest index caf8f117d1..8d3bf7cd6b 100644 --- a/lib/tempest +++ b/lib/tempest @@ -322,7 +322,9 @@ function configure_tempest { local tmp_cfg_file tmp_cfg_file=$(mktemp) cd $TEMPEST_DIR - tox -revenv --notest + if [[ "$OFFLINE" != "True" ]]; then + tox -revenv --notest + fi # NOTE(mtreinish): Respect constraints on tempest verify-config venv tox -evenv -- pip install -c $REQUIREMENTS_DIR/upper-constraints.txt -r requirements.txt tox -evenv -- tempest verify-config -uro $tmp_cfg_file