Fixed the path of generate-tempest-plugins-list.py
* since on using zuul-git-prep, openstack/tempest is the current $workspace and earlier we were using the wrong path which leds to failure of excution of above script and further steps using that path. Fixing the workspace path fixes the issue. Change-Id: I9f5b3190adfb60a639b10cbbf706369b2d18c48c
This commit is contained in:
parent
c55005085e
commit
5833b67930
|
@ -73,27 +73,27 @@
|
|||
- shell: |
|
||||
#!/bin/bash -eux
|
||||
cd $WORKSPACE
|
||||
PROJECT_LIST="$(python ./openstack/tempest/tools/generate-tempest-plugins-list.py)"
|
||||
# retrieve a list of projects having tempest plugins
|
||||
PROJECT_LIST="$(python tools/generate-tempest-plugins-list.py)"
|
||||
# function to clone project using zuul-cloner
|
||||
function clone_project() {{
|
||||
/usr/zuul-env/bin/zuul-cloner --cache-dir /opt/git \
|
||||
git://git.openstack.org \
|
||||
openstack/"$1"
|
||||
echo "$1 project clonned successfully."
|
||||
}}
|
||||
|
||||
# Clone projects having tempest plugins
|
||||
for project in $PROJECT_LIST; do
|
||||
clone_project $project
|
||||
done
|
||||
virtualenv $WORKSPACE/openstack/tempest/.venv
|
||||
export TVENV="$WORKSPACE/openstack/tempest/tools/with_venv.sh"
|
||||
$TVENV pip install $WORKSPACE/openstack/tempest
|
||||
virtualenv $WORKSPACE/.venv
|
||||
export TVENV="$WORKSPACE/tools/with_venv.sh"
|
||||
$TVENV pip install .
|
||||
# Install other tempest plugins projects
|
||||
for project in $PROJECT_LIST; do
|
||||
$TVENV pip install $WORKSPACE/openstack/$project
|
||||
done
|
||||
# Create Tempest workspace
|
||||
# Create tempest workspace
|
||||
$TVENV tempest init $WORKSPACE/tempest_sanity
|
||||
cd $WORKSPACE/tempest_sanity
|
||||
$TVENV tempest list-plugins
|
||||
|
|
Loading…
Reference in New Issue