ansible-test - add constraint for virtualenv (#67289)

* ansible-test - add constraint for virtualenv

* Limit virtualenv only on macOS.

Co-authored-by: Matt Clay <matt@mystile.com>
This commit is contained in:
Sam Doran 2020-02-10 19:29:47 -05:00 committed by GitHub
parent c32348088a
commit 8f296a6533
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 1 deletions

View file

@ -0,0 +1,2 @@
bugfixes:
- ansible-test - Use ``virtualenv`` versions before 20 on provisioned macOS instances to remain compatible with an older pip install.

View file

@ -73,7 +73,7 @@ elif [ "${platform}" = "rhel" ]; then
elif [ "${platform}" = "osx" ]; then
while true; do
pip install --disable-pip-version-check --quiet \
virtualenv \
'virtualenv<20' \
&& break
echo "Failed to install packages. Sleeping before trying again..."
sleep 10