def echo_results(data, no_color, verbose=False):
try:<EOL><INDENT>summary = data['<STR_LIT>']<EOL><DEDENT>except KeyError as error:<EOL><INDENT>click.secho(<EOL>'<STR_LIT>' % error,<EOL>fg='<STR_LIT>'<EOL>)<EOL>sys.exit(<NUM_LIT:1>)<EOL><DEDENT>if '<STR_LIT>' in summary or '<STR_LIT:error>' in summary:<EOL><INDENT>fg = '<STR_LIT>'<EOL>status = '<STR_LIT>'<EOL><DEDENT>else:<EOL><INDENT>fg = '<STR_LIT>'<EOL>status = '<STR_LIT>'<EOL><DEDENT>results = '<STR_LIT>'.format(<EOL>status,<EOL>str(summary.get('<STR_LIT>', <NUM_LIT:0>)),<EOL>str(summary.get('<STR_LIT>', <NUM_LIT:0>)),<EOL>str(summary.get('<STR_LIT>', <NUM_LIT:0>)),<EOL>str(summary.get('<STR_LIT>', <NUM_LIT:0>)),<EOL>str(summary.get('<STR_LIT:error>', <NUM_LIT:0>))<EOL>)<EOL>echo_style(results, no_color, fg=fg)<EOL>if verbose:<EOL><INDENT>echo_verbose_results(data, no_color)<EOL><DEDENT>
Print test results in nagios style format.