mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-25 11:51:26 -07:00
Add --failure-ok
option to ansible-test
. (#22623)
This commit is contained in:
parent
2e28173d49
commit
89559f78de
5 changed files with 26 additions and 16 deletions
|
@ -712,8 +712,13 @@ def command_compile(args):
|
|||
failed.append('compile --python %s' % version)
|
||||
|
||||
if failed:
|
||||
raise ApplicationError('The %d compile test(s) listed below (out of %d) failed. See error output above for details.\n%s' % (
|
||||
len(failed), total, '\n'.join(failed)))
|
||||
message = 'The %d compile test(s) listed below (out of %d) failed. See error output above for details.\n%s' % (
|
||||
len(failed), total, '\n'.join(failed))
|
||||
|
||||
if args.failure_ok:
|
||||
display.error(message)
|
||||
else:
|
||||
raise ApplicationError(message)
|
||||
|
||||
|
||||
def compile_version(args, python_version, include, exclude):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue