scripts: Keep coverage.xml

useful for tools showing coverage info in e.g. your editor
This commit is contained in:
Florian Bruhin 2023-11-22 14:44:34 +01:00
parent 23d6a331f7
commit 4ffb8a37aa
1 changed files with 0 additions and 5 deletions

View File

@ -328,10 +328,6 @@ def main_check():
print("or check https://codecov.io/github/qutebrowser/qutebrowser")
print()
if scriptutils.ON_CI:
print("Keeping coverage.xml on CI.")
else:
os.remove('coverage.xml')
return 1 if messages else 0
@ -352,7 +348,6 @@ def main_check_all():
'--cov-report', 'xml', test_file], check=True)
with open('coverage.xml', encoding='utf-8') as f:
messages = check(f, [(test_file, src_file)])
os.remove('coverage.xml')
messages = [msg for msg in messages
if msg.typ == MsgType.insufficient_coverage]