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: josch
GPG key ID: F2CBA5C78FBD83E1

View file

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