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 1QpS4v-00013w-Mv for garchives@archives.gentoo.org; Fri, 05 Aug 2011 21:37:13 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 5693621C190; Fri, 5 Aug 2011 21:36:51 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id 2B65321C0F3 for ; Fri, 5 Aug 2011 21:36:51 +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 BC6D71B402F for ; Fri, 5 Aug 2011 21:36:50 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by pelican.gentoo.org (Postfix) with ESMTP id D23918004F for ; Fri, 5 Aug 2011 21:36:49 +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: <9992ea7d4bc14fd5620500b87cb657e41958adec.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: 9992ea7d4bc14fd5620500b87cb657e41958adec Date: Fri, 5 Aug 2011 21:36:49 +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: 60a1a0a2069db2f3190111d852aafd0d commit: 9992ea7d4bc14fd5620500b87cb657e41958adec Author: Micha=C5=82 G=C3=B3rny gentoo org> AuthorDate: Fri Aug 5 21:12:34 2011 +0000 Commit: Micha=C5=82 G=C3=B3rny gentoo org> CommitDate: Fri Aug 5 21:12:34 2011 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=3Dproj/pms-test-suit= e.git;a=3Dcommit;h=3D9992ea7d Sort test results by EAPI. --- pmstestsuite/output/html.py | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pmstestsuite/output/html.py b/pmstestsuite/output/html.py index 8a464ab..af3e10c 100644 --- a/pmstestsuite/output/html.py +++ b/pmstestsuite/output/html.py @@ -138,11 +138,11 @@ class HTMLOutput(OutputModule): row =3D 2 for cl, tests in _results_by_class(results).items(): table[row][0] =3D cl - for t, pms in tests.items(): + for t in sorted(tests, key =3D lambda t: t.eapi): table[row][1] =3D t.eapi test_asserts =3D [] col =3D 4 - for pm, r in _sorted_pms(pms): + for pm, r in _sorted_pms(tests[t]): table[row][col+1] =3D BoolCell(r) for a in r.assertions: if a.name not in test_asserts: