coverage.py: improve output format of failed tests

This commit is contained in:
Johannes Schauer Marin Rodrigues 2022-10-10 23:11:35 +02:00
parent d4cb065639
commit fbc3e5549d
Signed by untrusted user: josch
GPG key ID: F2CBA5C78FBD83E1

View file

@ -292,8 +292,11 @@ def main():
print(f" {t}", file=sys.stderr)
if failed:
print("failed %d:" % len(failed), file=sys.stderr)
for t in failed:
print(f" {t}", file=sys.stderr)
for name, dist, mode, variant, fmt in failed:
print(
f" {name} --dist={dist} --mode={mode} --variant={variant}",
file=sys.stderr,
)
exit(1)