From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id E0A28138335 for ; Wed, 6 Mar 2019 11:09:15 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id D2E5BE08E0; Wed, 6 Mar 2019 11:09:14 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id AC14CE08E0 for ; Wed, 6 Mar 2019 11:09:14 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 67065335C7A for ; Wed, 6 Mar 2019 11:09:13 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 0E258553 for ; Wed, 6 Mar 2019 11:09:12 +0000 (UTC) From: "Fabian Groffen" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Fabian Groffen" Message-ID: <1551870546.99283251cb6a8f2f5a004b5024345f72a7023ecb.grobian@gentoo> Subject: [gentoo-commits] repo/proj/prefix:master commit in: scripts/auto-bootstraps/ X-VCS-Repository: repo/proj/prefix X-VCS-Files: scripts/auto-bootstraps/analyse_result.py X-VCS-Directories: scripts/auto-bootstraps/ X-VCS-Committer: grobian X-VCS-Committer-Name: Fabian Groffen X-VCS-Revision: 99283251cb6a8f2f5a004b5024345f72a7023ecb X-VCS-Branch: master Date: Wed, 6 Mar 2019 11:09:12 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 9742f5f2-b571-41c7-8998-87ab91ea12e0 X-Archives-Hash: c89a51bf102adbcc71ebf186ce5fe757 commit: 99283251cb6a8f2f5a004b5024345f72a7023ecb Author: Fabian Groffen gentoo org> AuthorDate: Wed Mar 6 11:06:31 2019 +0000 Commit: Fabian Groffen gentoo org> CommitDate: Wed Mar 6 11:09:06 2019 +0000 URL: https://gitweb.gentoo.org/repo/proj/prefix.git/commit/?id=99283251 analyse_result: group archs by clumpsily sorting Signed-off-by: Fabian Groffen gentoo.org> scripts/auto-bootstraps/analyse_result.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scripts/auto-bootstraps/analyse_result.py b/scripts/auto-bootstraps/analyse_result.py index 516ead7f75..487b8c77c7 100755 --- a/scripts/auto-bootstraps/analyse_result.py +++ b/scripts/auto-bootstraps/analyse_result.py @@ -135,6 +135,8 @@ with os.scandir(resultsdir) as it: endc = '\033[0m' print("%s%24s: suc %8s fail %8s%s" % (color, arch, suc, fail, endc)) +sarchs = sorted(archs, key=lambda a: '-'.join(a.split('-')[::-1])) + # generate html edition with open(os.path.join(resultsdir, 'index.html'), "w") as h: h.write("") @@ -145,7 +147,7 @@ with open(os.path.join(resultsdir, 'index.html'), "w") as h: h.write("architecture") h.write("last successful runlast failed run") h.write("failure") - for arch in archs: + for arch in sarchs: fail, errcode, suc, et = archs[arch] if not suc: state = 'red'