From 9fcf6dff12f38873f1531bad320dc9c284b6024d Mon Sep 17 00:00:00 2001 From: Uzini <43294422+Uziniii@users.noreply.github.com> Date: Thu, 27 Aug 2026 22:01:20 +0200 Subject: [PATCH] tools: show slowest tests with --time Signed-off-by: Uzini <43294422+Uziniii@users.noreply.github.com> --- tools/test.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/test.py b/tools/test.py index 2c2a4d78d80a..ee67da897bfc 100755 --- a/tools/test.py +++ b/tools/test.py @@ -1849,7 +1849,7 @@ def should_keep(case): print() sys.stderr.write("--- Total time: %s ---\n" % FormatTime(duration)) timed_tests = [ t for t in cases_to_run if not t.duration is None ] - timed_tests.sort(key=lambda x: x.duration) + timed_tests.sort(key=lambda x: x.duration, reverse=True) for i, entry in enumerate(timed_tests[:20], start=1): t = FormatTimedelta(entry.duration) sys.stderr.write("%4i (%s) %s\n" % (i, t, entry.GetLabel()))