[stable-2.9] Properly exclude tests/output/ from code coverage.

(cherry picked from commit 983f0ad)

Co-authored-by: Matt Clay <matt@mystile.com>
This commit is contained in:
Matt Clay 2019-09-10 12:49:23 -07:00 committed by Toshio Kuratomi
parent 4f51852b5e
commit c2387536ab
2 changed files with 5 additions and 3 deletions

View file

@ -0,0 +1,2 @@
bugfixes:
- ansible-test now properly excludes the ``tests/output/`` directory from code coverage

View file

@ -111,11 +111,11 @@ include =
# temporary work-around for import sanity test
coverage_config += '''
include =
%s/*
%s/*
omit =
*/test/results/*
''' % data_context().content.root
%s/*
''' % (data_context().content.root, os.path.join(data_context().content.root, data_context().content.results_path))
else:
coverage_config += '''
include =