diff options
| author | Richo Healey <richo@psych0tik.net> | 2015-05-24 05:12:40 -0700 |
|---|---|---|
| committer | Richo Healey <richo@psych0tik.net> | 2015-05-24 05:12:40 -0700 |
| commit | 24bae2e300c8dcf6d32a1b42aee8fccd152e473a (patch) | |
| tree | 3e4195012589ce78fa0f77129fca1a31b4c18654 /src | |
| parent | 6bcdd9ed2cde913e950a545959e42afa3a83a3cd (diff) | |
| download | rust-24bae2e300c8dcf6d32a1b42aee8fccd152e473a.tar.gz rust-24bae2e300c8dcf6d32a1b42aee8fccd152e473a.zip | |
etc: py3 compat for check-summary.py
Diffstat (limited to 'src')
| -rwxr-xr-x | src/etc/check-summary.py | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/etc/check-summary.py b/src/etc/check-summary.py index 917e1970a36..9312b685c14 100755 --- a/src/etc/check-summary.py +++ b/src/etc/check-summary.py @@ -34,7 +34,7 @@ if __name__ == '__main__': summaries.append((fname, summary)) def count(t): - return sum(map(lambda (f, s): len(s.get(t, [])), summaries)) + return sum(map(lambda f: len(f[1].get(t, [])), summaries)) logfiles = sys.argv[1:] for files in map(glob.glob, logfiles): @@ -43,15 +43,15 @@ if __name__ == '__main__': failed = count('failed') ignored = count('ignored') measured = count('bench') - print "summary of %d test runs: %d passed; %d failed; %d ignored; %d measured" % \ - (len(logfiles), ok, failed, ignored, measured) - print "" + print("summary of %d test runs: %d passed; %d failed; %d ignored; %d measured" % + (len(logfiles), ok, failed, ignored, measured)) + print("") if failed > 0: - print "failed tests:" + print("failed tests:") for f, s in summaries: failures = s.get('failed', []) if len(failures) > 0: - print " %s:" % (f) + print(" %s:" % (f)) for test in failures: - print " %s" % (test) + print(" %s" % (test)) |
