Skip to content

Commit 07fbb42

Browse files
committed
---
yaml --- r: 182771 b: refs/heads/beta c: 91928dd h: refs/heads/master i: 182769: 1945673 182767: 7fd1181 v: v3
1 parent 0c53f22 commit 07fbb42

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ refs/heads/automation-fail: 1bf06495443584539b958873e04cc2f864ab10e4
3131
refs/heads/issue-18208-method-dispatch-3-quick-reject: 2009f85b9f99dedcec4404418eda9ddba90258a2
3232
refs/heads/batch: b7fd822592a4fb577552d93010c4a4e14f314346
3333
refs/heads/building: 126db549b038c84269a1e4fe46f051b2c15d6970
34-
refs/heads/beta: f7509df8f9c63454ce70b5e5519c0e09de96158a
34+
refs/heads/beta: 91928dd9e906e6891f874d5b5cfe0dd59a904676
3535
refs/heads/windistfix: 7608dbad651f02e837ed05eef3d74a6662a6e928
3636
refs/tags/1.0.0-alpha: e42bd6d93a1d3433c486200587f8f9e12590a4d7
3737
refs/heads/tmp: eb836bf767aa1d8d4cba488a9091cde3c0ab4b2f

branches/beta/src/etc/check-summary.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515

1616
if __name__ == '__main__':
1717
summaries = []
18+
1819
def summarise(fname):
1920
summary = {}
2021
with open(fname) as fd:
@@ -27,12 +28,14 @@ def summarise(fname):
2728
# track bench runs
2829
if splitline[1] == 'ns/iter':
2930
status = 'bench'
30-
if not summary.has_key(status):
31+
if status not in summary:
3132
summary[status] = []
3233
summary[status].append(test)
3334
summaries.append((fname, summary))
35+
3436
def count(t):
3537
return sum(map(lambda (f, s): len(s.get(t, [])), summaries))
38+
3639
logfiles = sys.argv[1:]
3740
for files in map(glob.glob, logfiles):
3841
map(summarise, files)
@@ -41,8 +44,9 @@ def count(t):
4144
ignored = count('ignored')
4245
measured = count('bench')
4346
print "summary of %d test runs: %d passed; %d failed; %d ignored; %d measured" % \
44-
(len(logfiles), ok, failed, ignored, measured)
47+
(len(logfiles), ok, failed, ignored, measured)
4548
print ""
49+
4650
if failed > 0:
4751
print "failed tests:"
4852
for f, s in summaries:

0 commit comments

Comments
 (0)