1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

Don't fail coverage reporting due to parse errors.

This commit is contained in:
Matt Clay 2017-08-10 14:32:25 -07:00
parent edc3507c98
commit 869e90e12a

View file

@ -169,7 +169,7 @@ def command_coverage_html(args):
dir_name = 'test/results/reports/%s' % os.path.basename(output_file) dir_name = 'test/results/reports/%s' % os.path.basename(output_file)
env = common_environment() env = common_environment()
env.update(dict(COVERAGE_FILE=output_file)) env.update(dict(COVERAGE_FILE=output_file))
run_command(args, env=env, cmd=['coverage', 'html', '-d', dir_name]) run_command(args, env=env, cmd=['coverage', 'html', '-i', '-d', dir_name])
def command_coverage_xml(args): def command_coverage_xml(args):
@ -182,7 +182,7 @@ def command_coverage_xml(args):
xml_name = 'test/results/reports/%s.xml' % os.path.basename(output_file) xml_name = 'test/results/reports/%s.xml' % os.path.basename(output_file)
env = common_environment() env = common_environment()
env.update(dict(COVERAGE_FILE=output_file)) env.update(dict(COVERAGE_FILE=output_file))
run_command(args, env=env, cmd=['coverage', 'xml', '-o', xml_name]) run_command(args, env=env, cmd=['coverage', 'xml', '-i', '-o', xml_name])
def command_coverage_erase(args): def command_coverage_erase(args):