diff options
| author | Brian Anderson <banderson@mozilla.com> | 2012-04-04 13:40:50 -0700 |
|---|---|---|
| committer | Brian Anderson <banderson@mozilla.com> | 2012-04-04 13:40:50 -0700 |
| commit | 1ad62def6a550e2ac015bdf34bcf25b7a7b4b92c (patch) | |
| tree | 8fe2945f47161b258035c56dde86d52eed786ad9 | |
| parent | 5cc050b265509c19717e11e12dd785d8c73f5b11 (diff) | |
| download | rust-1ad62def6a550e2ac015bdf34bcf25b7a7b4b92c.tar.gz rust-1ad62def6a550e2ac015bdf34bcf25b7a7b4b92c.zip | |
build: Cleanup of test summary printing
| -rw-r--r-- | mk/tests.mk | 14 | ||||
| -rwxr-xr-x | src/etc/check-summary.py | 3 |
2 files changed, 12 insertions, 5 deletions
diff --git a/mk/tests.mk b/mk/tests.mk index a18f2df89d3..7b503b2109a 100644 --- a/mk/tests.mk +++ b/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 diff --git a/src/etc/check-summary.py b/src/etc/check-summary.py index 7c7e807f43c..7faacbfbb26 100755 --- a/src/etc/check-summary.py +++ b/src/etc/check-summary.py @@ -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: |
