Add --remote-terminate option to ansible-test.

Set `--remote-terminate success` for osx tests.
This commit is contained in:
Matt Clay 2017-05-11 21:21:11 +08:00
parent bb90f5d220
commit fb9efd3c7e
4 changed files with 13 additions and 2 deletions

View file

@ -456,6 +456,7 @@ def add_environments(parser, tox_version=False, tox_only=False):
remote=None,
remote_stage=None,
remote_aws_region=None,
remote_terminate=None,
)
return
@ -486,6 +487,12 @@ def add_environments(parser, tox_version=False, tox_only=False):
choices=sorted(AWS_ENDPOINTS),
default=None)
remote.add_argument('--remote-terminate',
metavar='WHEN',
help='terminate remote instance: %(choices)s (default: %(default)s)',
choices=['never', 'always', 'success'],
default='never')
def add_extra_docker_options(parser, integration=True):
"""