Skip to content

Commit

Permalink
ansible-test - add constraint for virtualenv (ansible#67289)
Browse files Browse the repository at this point in the history
* ansible-test - add constraint for virtualenv

* Limit virtualenv only on macOS.

Co-authored-by: Matt Clay <matt@mystile.com>
  • Loading branch information
samdoran and mattclay committed Feb 11, 2020
1 parent c323480 commit 8f296a6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions changelogs/fragments/ansible-test-constraints-virtualenv.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
bugfixes:
- ansible-test - Use ``virtualenv`` versions before 20 on provisioned macOS instances to remain compatible with an older pip install.
2 changes: 1 addition & 1 deletion test/lib/ansible_test/_data/setup/remote.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 8f296a6

Please sign in to comment.