summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorSlawek Kaplonski <skaplons@redhat.com>2021-07-06 12:07:59 +0200
committerSlawek Kaplonski <skaplons@redhat.com>2022-01-17 12:32:04 +0100
commitddf0568f39eea99ee6a415dc7592cb5681f060c4 (patch)
treeb707a629180c3df23345851d4684ecc4b7768502 /tools
parent0a89986932bef0c7200fb731ab54832608926fbb (diff)
downloadneutron-ddf0568f39eea99ee6a415dc7592cb5681f060c4.tar.gz
Make configure_for_func_testing compatible with e.g. Centos
This is basically revert of the [1] which was revert of the [2] but now it should not break our CI jobs. In the configure_for_func_testing script openvswitch is installed from source. We need to set proper flag (Q_BUILD_OVS_FROM_GIT) which is used in Devstack to tell Devstack to install it from source and not from packages. This patch also removes flag BUILD_OVS_FROM_SOURCE from the configure_for_func_testing file as it was only used in that file and was actually duplicating the Q_BUILD_OVS_FROM_GIT option used also in Devstack. [1] https://review.opendev.org/c/openstack/neutron/+/824750 [2] https://review.opendev.org/c/openstack/neutron/+/824750 Change-Id: I35715a047d23ed87312afd294cc898de7c164583
Diffstat (limited to 'tools')
-rwxr-xr-xtools/configure_for_func_testing.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/configure_for_func_testing.sh b/tools/configure_for_func_testing.sh
index 7dc3086f85..f24bbff937 100755
--- a/tools/configure_for_func_testing.sh
+++ b/tools/configure_for_func_testing.sh
@@ -64,9 +64,9 @@ NEUTRON_DIR=${NEUTRON_DIR:=$REPO_BASE/$PROJECT_NAME}
INSTALL_MYSQL_ONLY=${INSTALL_MYSQL_ONLY:-False}
# The gate should automatically install dependencies.
INSTALL_BASE_DEPENDENCIES=${INSTALL_BASE_DEPENDENCIES:-$IS_GATE}
-BUILD_OVS_FROM_SOURCE=${BUILD_OVS_FROM_SOURCE:-True}
INSTALL_OVN=${INSTALL_OVN:-True}
OVN_BRANCH=${OVN_BRANCH:-main}
+Q_BUILD_OVS_FROM_GIT=${Q_BUILD_OVS_FROM_GIT:-True}
OVS_BRANCH=${OVS_BRANCH:-master}
@@ -103,7 +103,7 @@ function _install_base_deps {
echo_summary "Installing base dependencies"
INSTALL_TESTONLY_PACKAGES=True
- if [[ "$BUILD_OVS_FROM_SOURCE" == "True" ]]; then
+ if [[ "$Q_BUILD_OVS_FROM_GIT" == "True" ]]; then
PACKAGES=$(get_packages general,neutron,q-agt,q-l3)
# Do not install 'python-' prefixed packages other than
# python-dev*. Neutron's functional testing relies on deployment