Browse code

Ensure we install tempest-lib from git in tempest's tox venv

This commit adds installing tempest-lib from git to the tempest full
job's tox venv. Since by default tempest isn't being installed
globally anymore and when we do run tempest it is normally within a
tox venv that means previously the install from git flag isn't being
taken into account.

Change-Id: I98b0754c4a91690c9402fa2ae2c3e9ba9195d444

Matthew Treinish authored on 2015/02/19 09:01:20
Showing 1 changed files
... ...
@@ -517,14 +517,23 @@ function install_tempest_lib {
517 517
     if use_library_from_git "tempest-lib"; then
518 518
         git_clone_by_name "tempest-lib"
519 519
         setup_dev_lib "tempest-lib"
520
+        # NOTE(mtreinish) For testing tempest-lib from git with tempest we need
521
+        # put the git version of tempest-lib in the tempest job's tox venv
522
+        export PIP_VIRTUAL_ENV=${PROJECT_VENV["tempest"]}
523
+        setup_dev_lib "tempest-lib"
524
+        unset PIP_VIRTUAL_ENV
520 525
     fi
521 526
 }
522 527
 
523 528
 # install_tempest() - Collect source and prepare
524 529
 function install_tempest {
525
-    install_tempest_lib
526 530
     git_clone $TEMPEST_REPO $TEMPEST_DIR $TEMPEST_BRANCH
527 531
     pip_install tox
532
+    pushd $TEMPEST_DIR
533
+    tox --notest -efull
534
+    PROJECT_VENV["tempest"]=${TEMPEST_DIR}/.tox/full
535
+    install_tempest_lib
536
+    popd
528 537
 }
529 538
 
530 539
 # init_tempest() - Initialize ec2 images