Use curl to download u-c

In functional tests we don't ensure that wget exists. Also for Ubuntu
we ensure that curl is present only. So let's replace wget command with
curl and be consistent across repos.

Change-Id: If9106bd0a481079b9e676c5547e244a11a35fb73
This commit is contained in:
Dmitriy Rabotyagov 2022-12-28 14:50:57 +01:00
parent 747c5f6554
commit c2c71cac9f
2 changed files with 2 additions and 2 deletions

View File

@ -50,7 +50,7 @@ case "${ID,,}" in
pkg_list="python38 python38-devel redhat-lsb-core" pkg_list="python38 python38-devel redhat-lsb-core"
;; ;;
9) 9)
pkg_list="python3 python3-devel" pkg_list="python3 python3-devel curl"
;; ;;
esac esac
;; ;;

View File

@ -181,7 +181,7 @@ REQS_REPO_HOME="${TESTING_HOME}/src/opendev.org/openstack/requirements"
if [[ -d "${REQS_REPO_HOME}" ]]; then if [[ -d "${REQS_REPO_HOME}" ]]; then
cp "${REQS_REPO_HOME}/upper-constraints.txt" /tmp/upper-constraints.txt cp "${REQS_REPO_HOME}/upper-constraints.txt" /tmp/upper-constraints.txt
else else
wget "${TOX_CONSTRAINTS_FILE:-https://opendev.org/openstack/requirements/raw/${SERVICES_BRANCH}/upper-constraints.txt}" -O /tmp/upper-constraints.txt curl -L "${TOX_CONSTRAINTS_FILE:-https://opendev.org/openstack/requirements/raw/${SERVICES_BRANCH}/upper-constraints.txt}" -o /tmp/upper-constraints.txt
fi fi
# Filter out pip/wheel from OpenStack upper constraints # Filter out pip/wheel from OpenStack upper constraints