Browse code

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

Jacek Tomasiak authored on 2016/02/27 07:14:54
Showing 1 changed files
... ...
@@ -322,7 +322,9 @@ function configure_tempest {
322 322
     local tmp_cfg_file
323 323
     tmp_cfg_file=$(mktemp)
324 324
     cd $TEMPEST_DIR
325
-    tox -revenv --notest
325
+    if [[ "$OFFLINE" != "True" ]]; then
326
+        tox -revenv --notest
327
+    fi
326 328
     # NOTE(mtreinish): Respect constraints on tempest verify-config venv
327 329
     tox -evenv -- pip install -c $REQUIREMENTS_DIR/upper-constraints.txt -r requirements.txt
328 330
     tox -evenv -- tempest verify-config -uro $tmp_cfg_file