diff options
author | Matt Clay <matt@mystile.com> | 2019-08-28 09:10:17 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-08-28 09:10:17 -0700 |
commit | 830f995ed4374a0c75b41837186e719b5c43f845 (patch) | |
tree | f2b412636b613bd1f889496af8cfe9ef5775b633 /test/lib/ansible_test/_internal/cli.py | |
parent | 8ebed4002faf68faf23611b1ea238c726a597865 (diff) | |
download | ansible-830f995ed4374a0c75b41837186e719b5c43f845.tar.gz |
Add a --venv option to ansible-test. (#61422)
* Add --venv delegation to ansible-test.
* Update import sanity test venv creation.
* Fix import test when using --venv on Python 2.x.
* Improve virtualenv setup overhead.
* Hide pip noise for import sanity test.
* Raise verbosity on venv info messages.
* Get rid of base branch noise for collections.
* Add missing --requirements check.
Diffstat (limited to 'test/lib/ansible_test/_internal/cli.py')
-rw-r--r-- | test/lib/ansible_test/_internal/cli.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/lib/ansible_test/_internal/cli.py b/test/lib/ansible_test/_internal/cli.py index 39077e30f3..6b2dd72b17 100644 --- a/test/lib/ansible_test/_internal/cli.py +++ b/test/lib/ansible_test/_internal/cli.py @@ -643,6 +643,10 @@ def add_environments(parser, tox_version=False, tox_only=False): action='store_true', help='run from the local environment') + environments.add_argument('--venv', + action='store_true', + help='run from ansible-test managed virtual environments') + if data_context().content.is_ansible: if tox_version: environments.add_argument('--tox', |