Browse code

Merge "Optionally install tempest and disable by default"

Jenkins authored on 2015/03/03 23:00:57
Showing 2 changed files
... ...
@@ -282,7 +282,15 @@ If tempest has been successfully configured, a basic set of smoke
282 282
 tests can be run as follows:
283 283
 
284 284
     $ cd /opt/stack/tempest
285
-    $ nosetests tempest/scenario/test_network_basic_ops.py
285
+    $ tox -efull  tempest.scenario.test_network_basic_ops
286
+
287
+By default tempest is downloaded and the config file is generated, but the
288
+tempest package is not installed in the system's global site-packages (the
289
+package install includes installing dependences). So tempest won't run
290
+outside of tox. If you would like to install it add the following to your
291
+``localrc`` section:
292
+
293
+    INSTALL_TEMPEST=True
286 294
 
287 295
 # DevStack on Xenserver
288 296
 
... ...
@@ -63,6 +63,12 @@ BUILD_INTERVAL=1
63 63
 BUILD_TIMEOUT=${BUILD_TIMEOUT:-196}
64 64
 
65 65
 
66
+# This must be False on stable branches, as master tempest
67
+# deps do not match stable branch deps. Set this to True to
68
+# have tempest installed in devstack by default.
69
+INSTALL_TEMPEST=${INSTALL_TEMPEST:-"False"}
70
+
71
+
66 72
 BOTO_MATERIALS_PATH="$FILES/images/s3-materials/cirros-${CIRROS_VERSION}"
67 73
 BOTO_CONF=/etc/boto.cfg
68 74
 
... ...
@@ -94,8 +100,12 @@ function remove_disabled_extensions {
94 94
 
95 95
 # configure_tempest() - Set config files, create data dirs, etc
96 96
 function configure_tempest {
97
-    # install testr since its used to process tempest logs
98
-    pip_install $(get_from_global_requirements testrepository)
97
+    if [[ "$INSTALL_TEMPEST" == "True" ]]; then
98
+        setup_develop $TEMPEST_DIR
99
+    else
100
+        # install testr since its used to process tempest logs
101
+        pip_install $(get_from_global_requirements testrepository)
102
+    fi
99 103
 
100 104
     local image_lines
101 105
     local images