Skip to content

Commit 1ad62de

Browse files
committed
build: Cleanup of test summary printing
1 parent 5cc050b commit 1ad62de

File tree

2 files changed

+12
-5
lines changed

2 files changed

+12
-5
lines changed

mk/tests.mk

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -66,11 +66,17 @@ endif
6666
# Main test targets
6767
######################################################################
6868

69-
check: tidy all check-stage2
70-
$(S)src/etc/check-summary.py tmp/*.log
69+
cleantmptestlogs:
70+
$(Q)rm -f tmp/*.log
7171

72-
check-full: tidy all check-stage1 check-stage2 check-stage3
73-
$(S)src/etc/check-summary.py tmp/*.log
72+
check: cleantmptestlogs tidy all check-stage2
73+
$(Q)$(S)src/etc/check-summary.py tmp/*.log
74+
75+
check-full: cleantmptestlogs tidy all check-stage1 check-stage2 check-stage3
76+
$(Q)$(S)src/etc/check-summary.py tmp/*.log
77+
78+
check-test: cleantmptestlogs all check-stage2-rfail
79+
$(Q)$(S)src/etc/check-summary.py tmp/*.log
7480

7581
# Run the tidy script in multiple parts to avoid huge 'echo' commands
7682
ifdef CFG_NOTIDY

src/etc/check-summary.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,9 @@ def count(t):
2020
ok = count('ok')
2121
failed = count('failed')
2222
ignored = count('ignored')
23-
print "summary of %d test logs: %d passed; %d failed; %d ignored" % \
23+
print "summary of %d test runs: %d passed; %d failed; %d ignored" % \
2424
(len(logfiles), ok, failed, ignored)
25+
print ""
2526
if failed > 0:
2627
print "failed tests:"
2728
for f, s in summaries:

0 commit comments

Comments
 (0)