Merge "Fix tempest workspace path"

This commit is contained in:
Zuul 2019-01-16 18:35:39 +00:00 committed by Gerrit Code Review
commit 8a463384a2
1 changed files with 9 additions and 1 deletions

View File

@ -45,7 +45,15 @@
if [ -d {{ tempest_venv_bin }} ]; then
. {{ tempest_venv_bin }}/activate
fi
tempest init {{ tempest_workspace }}
# (guilhermesp) We are adding this conditional here to avoid
# breakage when we are upgrade from rocky to stein as the workspace
# path has been change between these two releases
if tempest workspace list | grep workspace; then
if ! tempest workspace list | grep -w {{ tempest_workspace }}; then
tempest workspace move --name workspace --path {{ tempest_workspace }}
fi
fi
tempest init {{ tempest_workspace }}
exit 3
fi
args: