mirror of
https://github.com/samba-team/samba.git
synced 2025-01-03 01:18:10 +03:00
script/show_test_time: attempt py3 compat
Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz> Reviewed-by: Noel Power <noel.power@suse.com>
This commit is contained in:
parent
b1ba193dd0
commit
2013cd2889
@ -26,7 +26,7 @@ if opts.limit:
|
|||||||
print("Top %d tests by run time:" % opts.limit)
|
print("Top %d tests by run time:" % opts.limit)
|
||||||
|
|
||||||
for i, (name, length) in enumerate(sorted(
|
for i, (name, length) in enumerate(sorted(
|
||||||
durations.items(), cmp=lambda (k1,v1), (k2, v2): cmp(v1, v2), reverse=True)):
|
durations.items(), key=lambda x: x[1], reverse=True)):
|
||||||
if opts.limit and i == opts.limit:
|
if opts.limit and i == opts.limit:
|
||||||
break
|
break
|
||||||
print("%d: %s -> %ds" % (i+1, name, length))
|
print("%d: %s -> %ds" % (i+1, name, length))
|
||||||
|
Loading…
Reference in New Issue
Block a user