build: Cleanup of test summary printing

This commit is contained in:
Brian Anderson 2012-04-04 13:40:50 -07:00
parent 5cc050b265
commit 1ad62def6a
2 changed files with 12 additions and 5 deletions

View File

@ -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

View File

@ -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: