Gentoo Archives: gentoo-commits

From: Fabian Groffen <grobian@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/proj/prefix:master commit in: scripts/auto-bootstraps/
Date: Wed, 06 Mar 2019 11:09:15
Message-Id: 1551870546.99283251cb6a8f2f5a004b5024345f72a7023ecb.grobian@gentoo
1 commit: 99283251cb6a8f2f5a004b5024345f72a7023ecb
2 Author: Fabian Groffen <grobian <AT> gentoo <DOT> org>
3 AuthorDate: Wed Mar 6 11:06:31 2019 +0000
4 Commit: Fabian Groffen <grobian <AT> gentoo <DOT> org>
5 CommitDate: Wed Mar 6 11:09:06 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/proj/prefix.git/commit/?id=99283251
7
8 analyse_result: group archs by clumpsily sorting
9
10 Signed-off-by: Fabian Groffen <grobian <AT> gentoo.org>
11
12 scripts/auto-bootstraps/analyse_result.py | 4 +++-
13 1 file changed, 3 insertions(+), 1 deletion(-)
14
15 diff --git a/scripts/auto-bootstraps/analyse_result.py b/scripts/auto-bootstraps/analyse_result.py
16 index 516ead7f75..487b8c77c7 100755
17 --- a/scripts/auto-bootstraps/analyse_result.py
18 +++ b/scripts/auto-bootstraps/analyse_result.py
19 @@ -135,6 +135,8 @@ with os.scandir(resultsdir) as it:
20 endc = '\033[0m'
21 print("%s%24s: suc %8s fail %8s%s" % (color, arch, suc, fail, endc))
22
23 +sarchs = sorted(archs, key=lambda a: '-'.join(a.split('-')[::-1]))
24 +
25 # generate html edition
26 with open(os.path.join(resultsdir, 'index.html'), "w") as h:
27 h.write("<html>")
28 @@ -145,7 +147,7 @@ with open(os.path.join(resultsdir, 'index.html'), "w") as h:
29 h.write("<th>architecture</th>")
30 h.write("<th>last successful run</th><th>last failed run</th>")
31 h.write("<th>failure</th>")
32 - for arch in archs:
33 + for arch in sarchs:
34 fail, errcode, suc, et = archs[arch]
35 if not suc:
36 state = 'red'