Fix the jenkins run script

We need to source related to get global defined var for
requirements. and need related -H, details can be checked
in bug, it has related error message, and clear to understood.

Change-Id: Id5c71c524ae4b942026b8c670bb33a3c807227d9
Closes-Bug: #1551100
This commit is contained in:
Kai Qiang Wu(Kennan) 2016-02-29 07:01:24 +00:00
parent f21cad9662
commit 4a99d9277c
1 changed files with 4 additions and 1 deletions

View File

@ -147,8 +147,11 @@ set -o xtrace
echo_summary "magnum's post_test_hook.sh was called..."
(set -o posix; set)
# source it to make sure to get REQUIREMENTS_DIR
source $BASE/new/devstack/stackrc
constraints="-c $REQUIREMENTS_DIR/upper-constraints.txt"
sudo pip install $constraints -U -r requirements.txt -r test-requirements.txt
sudo -H pip install $constraints -U -r requirements.txt -r test-requirements.txt
export MAGNUM_DIR="$BASE/new/magnum"
sudo chown -R jenkins:stack $MAGNUM_DIR