mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-25 03:41:25 -07:00
ansible-test: pass --[skip-]tags to ansible-playbook
Thanks to Olaf Klischat for the idea.
This commit is contained in:
parent
611fbea8ea
commit
d08ff86169
2 changed files with 16 additions and 0 deletions
|
@ -665,6 +665,12 @@ def command_integration_role(args, target, start_at_task):
|
|||
if start_at_task:
|
||||
cmd += ['--start-at-task', start_at_task]
|
||||
|
||||
if args.tags:
|
||||
cmd += ['--tags', args.tags]
|
||||
|
||||
if args.skip_tags:
|
||||
cmd += ['--skip-tags', args.skip_tags]
|
||||
|
||||
if args.verbosity:
|
||||
cmd.append('-' + ('v' * args.verbosity))
|
||||
|
||||
|
@ -1309,6 +1315,8 @@ class IntegrationConfig(TestConfig):
|
|||
self.start_at_task = args.start_at_task # type: str
|
||||
self.allow_destructive = args.allow_destructive if 'allow_destructive' in args else False # type: bool
|
||||
self.retry_on_error = args.retry_on_error # type: bool
|
||||
self.tags = args.tags
|
||||
self.skip_tags = args.skip_tags
|
||||
|
||||
|
||||
class PosixIntegrationConfig(IntegrationConfig):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue