Add support for non_local alias in ansible-test.

This commit is contained in:
Matt Clay 2017-07-28 10:56:25 -07:00
parent 934b645191
commit e241e15899
7 changed files with 13 additions and 3 deletions

View file

@ -629,6 +629,12 @@ def integration_environment(args, target, cmd):
if args.debug_strategy:
env.update(dict(ANSIBLE_STRATEGY='debug'))
if 'non_local/' in target.aliases:
if args.coverage:
display.warning('Skipping coverage reporting for non-local test: %s' % target.name)
env.update(dict(ANSIBLE_TEST_REMOTE_INTERPRETER=''))
env.update(integration)
cloud_environment = get_cloud_environment(args, target)