Skip to content

Commit

Permalink
[stable-2.7] ansible-test - add constraint for virtualenv (#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>.
(cherry picked from commit 8f296a6)

Co-authored-by: Sam Doran <sdoran@redhat.com>
  • Loading branch information
samdoran authored and mattclay committed Feb 11, 2020
1 parent 9f60b16 commit 3bc7796
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/runner/setup/remote.sh
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ elif [ "${platform}" = "rhel" ]; then
fi

if [ "${platform}" = "freebsd" ] || [ "${platform}" = "osx" ]; then
pip install virtualenv
pip install 'virtualenv<20'

# Tests assume loopback addresses other than 127.0.0.1 will work.
# Add aliases for loopback addresses used by tests.
Expand Down

0 comments on commit 3bc7796

Please sign in to comment.