We run tempest inside of tox so no nee to install it. By not installing
it we decouple one more thing from the requirements sync.
Without this patch, due to branchless tempest, tempest must work with
master and all stable branch global requirements.
Although installing tempest should work on master, don't install it
anyway to make the user experience more uniform across master and
stable branches.
Note: Long term we can install this inside of a virtualenv
(I92648fffc1ad6af53006a0970722fd15f4e79dc2) but that logic hasn't landed
yet and installing tempest is breaking us. So leave moving this to a
virtualenv for a later patch.
Change-Id: I78d51f04ed01da4ce8aa0e127be028f969d3b4f8
| ... | ... |
@@ -95,7 +95,8 @@ function remove_disabled_extensions {
|
| 95 | 95 |
|
| 96 | 96 |
# configure_tempest() - Set config files, create data dirs, etc |
| 97 | 97 |
function configure_tempest {
|
| 98 |
- setup_develop $TEMPEST_DIR |
|
| 98 |
+ # install testr since its used to process tempest logs |
|
| 99 |
+ pip_install `grep -h testrepository $REQUIREMENTS_DIR/global-requirements.txt | cut -d\# -f1` |
|
| 99 | 100 |
local image_lines |
| 100 | 101 |
local images |
| 101 | 102 |
local num_images |
| ... | ... |
@@ -319,7 +320,8 @@ function configure_tempest {
|
| 319 | 319 |
# Run verify_tempest_config -ur to retrieve enabled extensions on API endpoints |
| 320 | 320 |
# NOTE(mtreinish): This must be done after auth settings are added to the tempest config |
| 321 | 321 |
local tmp_cfg_file=$(mktemp) |
| 322 |
- $TEMPEST_DIR/tempest/cmd/verify_tempest_config.py -uro $tmp_cfg_file |
|
| 322 |
+ cd $TEMPEST_DIR |
|
| 323 |
+ tox -evenv -- verify-tempest-config -uro $tmp_cfg_file |
|
| 323 | 324 |
|
| 324 | 325 |
local compute_api_extensions=${COMPUTE_API_EXTENSIONS:-"all"}
|
| 325 | 326 |
if [[ ! -z "$DISABLE_COMPUTE_API_EXTENSIONS" ]]; then |