mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Don't fail when combining coverage files
This commit is contained in:
parent
61e9efd7e0
commit
b459a482a0
1 changed files with 6 additions and 1 deletions
|
@ -292,7 +292,12 @@ def _run_with_coverage(session, *test_cmd):
|
|||
)
|
||||
finally:
|
||||
# Always combine and generate the XML coverage report
|
||||
session.run('coverage', 'combine')
|
||||
try:
|
||||
session.run('coverage', 'combine')
|
||||
except CommandFailed:
|
||||
# Sometimes some of the coverage files are corrupt which would trigger a CommandFailed
|
||||
# exception
|
||||
pass
|
||||
session.run('coverage', 'xml', '-o', os.path.join(REPO_ROOT, 'artifacts', 'coverage', 'coverage.xml'))
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue