From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1QrR0y-0003fZ-3L for garchives@archives.gentoo.org; Thu, 11 Aug 2011 08:53:28 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id A810121C3B1; Thu, 11 Aug 2011 08:53:12 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id 78CF421C3B1 for ; Thu, 11 Aug 2011 08:53:12 +0000 (UTC) Received: from pelican.gentoo.org (unknown [66.219.59.40]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 083711B400E for ; Thu, 11 Aug 2011 08:53:12 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by pelican.gentoo.org (Postfix) with ESMTP id B226F80048 for ; Thu, 11 Aug 2011 08:53:10 +0000 (UTC) From: "Michał Górny" To: gentoo-commits@lists.gentoo.org Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Michał Górny" Message-ID: <6cd3f23af97c0b0c15463702288a1d5a644c607c.mgorny@gentoo> Subject: [gentoo-commits] proj/pms-test-suite:master commit in: pmstestsuite/output/ X-VCS-Repository: proj/pms-test-suite X-VCS-Files: pmstestsuite/output/html.py X-VCS-Directories: pmstestsuite/output/ X-VCS-Committer: mgorny X-VCS-Committer-Name: Michał Górny X-VCS-Revision: 6cd3f23af97c0b0c15463702288a1d5a644c607c Date: Thu, 11 Aug 2011 08:53:10 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: quoted-printable X-Archives-Salt: X-Archives-Hash: 6fa6b96ba43ac0dd2aab8aadd52be43e commit: 6cd3f23af97c0b0c15463702288a1d5a644c607c Author: Micha=C5=82 G=C3=B3rny gentoo org> AuthorDate: Thu Aug 11 08:54:27 2011 +0000 Commit: Micha=C5=82 G=C3=B3rny gentoo org> CommitDate: Thu Aug 11 08:54:27 2011 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=3Dproj/pms-test-suit= e.git;a=3Dcommit;h=3D6cd3f23a HTML: order tests by short name. --- pmstestsuite/output/html.py | 5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-) diff --git a/pmstestsuite/output/html.py b/pmstestsuite/output/html.py index 749f95e..78599db 100644 --- a/pmstestsuite/output/html.py +++ b/pmstestsuite/output/html.py @@ -80,7 +80,8 @@ class HTMLOutput(OutputModule): ret =3D defaultdict(dict) for t, r in reorderedresults.items(): ret[t.short_name][t] =3D r - return ret + for cl in sorted(ret): + yield cl, ret[cl] =20 def _sorted_pms(pms): for pm in sorted(pms, key =3D lambda pm: mypms.index(pm)): @@ -163,7 +164,7 @@ class HTMLOutput(OutputModule): maxcol =3D 6 + i*2 =20 row =3D 2 - for cl, tests in _results_by_class(results).items(): + for cl, tests in _results_by_class(results): table[row][0] =3D cl for t in sorted(tests, key =3D lambda t: t.eapi): table[row][1] =3D t.eapi