Fix tempest workspace path
In master it was introduced distro installs for tempest[1], and with this upgrades from Rocky to future Stein are breaking because tempest complains about existent workspace path. This patch aims to deal with this replacing the workspace path if there is already a tempest workspace with a different path. [1] https://bit.ly/2GTqemC Change-Id: I27e4f602d0db5bacb074e8389011c70ba5f3085c
This commit is contained in:
parent
bb66dcd54d
commit
4d10da01e9
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue