build: Cleanup of test summary printing
This commit is contained in:
parent
5cc050b265
commit
1ad62def6a
14
mk/tests.mk
14
mk/tests.mk
@ -66,11 +66,17 @@ endif
|
||||
# Main test targets
|
||||
######################################################################
|
||||
|
||||
check: tidy all check-stage2
|
||||
$(S)src/etc/check-summary.py tmp/*.log
|
||||
cleantmptestlogs:
|
||||
$(Q)rm -f tmp/*.log
|
||||
|
||||
check-full: tidy all check-stage1 check-stage2 check-stage3
|
||||
$(S)src/etc/check-summary.py tmp/*.log
|
||||
check: cleantmptestlogs tidy all check-stage2
|
||||
$(Q)$(S)src/etc/check-summary.py tmp/*.log
|
||||
|
||||
check-full: cleantmptestlogs tidy all check-stage1 check-stage2 check-stage3
|
||||
$(Q)$(S)src/etc/check-summary.py tmp/*.log
|
||||
|
||||
check-test: cleantmptestlogs all check-stage2-rfail
|
||||
$(Q)$(S)src/etc/check-summary.py tmp/*.log
|
||||
|
||||
# Run the tidy script in multiple parts to avoid huge 'echo' commands
|
||||
ifdef CFG_NOTIDY
|
||||
|
@ -20,8 +20,9 @@ if __name__ == '__main__':
|
||||
ok = count('ok')
|
||||
failed = count('failed')
|
||||
ignored = count('ignored')
|
||||
print "summary of %d test logs: %d passed; %d failed; %d ignored" % \
|
||||
print "summary of %d test runs: %d passed; %d failed; %d ignored" % \
|
||||
(len(logfiles), ok, failed, ignored)
|
||||
print ""
|
||||
if failed > 0:
|
||||
print "failed tests:"
|
||||
for f, s in summaries:
|
||||
|
Loading…
Reference in New Issue
Block a user