Skip to content

Commit 053ee6e

Browse files
committed
[runtest] list failing files
1 parent 76bf9e9 commit 053ee6e

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

scripts/testing/runtest

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -874,9 +874,14 @@ async def _main():
874874
with open(options.report, 'wb') as output:
875875
_dump_report(mainconfig, log, output)
876876

877-
haserrors = any(not x.success for x in log)
877+
failing = [x for x in log if not x.success]
878+
if failing:
879+
print(f"Failed files ({len(failing)}):")
880+
for f in failing:
881+
print(f" - {f.config.filename}")
882+
exit(2)
878883

879-
exit(2 if haserrors else 0)
884+
exit(0)
880885

881886
# --------------------------------------------------------------------
882887
if __name__ == '__main__':

0 commit comments

Comments
 (0)