Add --failure-ok option to ansible-test. (#22623)

This commit is contained in:
Matt Clay 2017-03-14 16:32:21 -07:00 committed by GitHub
parent 2e28173d49
commit 89559f78de
5 changed files with 26 additions and 16 deletions

View file

@ -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):