Fix setting up functional test environment

neutron-functional tests started to fail after a change in
devstack [1].
Function setup_devstack_virtualenv now expects that the variable
PYTHON is set.
Call install_python (as stack.sh would) to make sure python is
installed and the PYTHON env variable is set.

[1] https://review.opendev.org/c/openstack/devstack/+/936961

Closes-Bug: #2091093
Change-Id: I4f90b91abe28436b39f8429a091ce4247286352f
This commit is contained in:
Bodo Petermann 2024-12-05 11:26:44 +01:00
parent 81e817ccc8
commit 498b0258c5

View File

@ -103,6 +103,7 @@ function _init {
sudo mkdir -p /opt/stack/data sudo mkdir -p /opt/stack/data
sudo chown -R $STACK_USER /opt/stack/data sudo chown -R $STACK_USER /opt/stack/data
source $DEVSTACK_PATH/inc/python source $DEVSTACK_PATH/inc/python
install_python
setup_devstack_virtualenv setup_devstack_virtualenv
GetDistro GetDistro