def results_history(history_log, no_color):
try:<EOL><INDENT>with open(history_log, '<STR_LIT:r>') as f:<EOL><INDENT>lines = f.readlines()<EOL><DEDENT><DEDENT>except Exception as error:<EOL><INDENT>echo_style(<EOL>'<STR_LIT>' % error,<EOL>no_color,<EOL>fg='<STR_LIT>'<EOL>)<EOL>sys.exit(<NUM_LIT:1>)<EOL><DEDENT>index = len(lines)<EOL>for item in lines:<EOL><INDENT>click.echo('<STR_LIT>'.format(index, item), nl=False)<EOL>index -= <NUM_LIT:1><EOL><DEDENT>
Display a list of ipa test results history.