commit: 99283251cb6a8f2f5a004b5024345f72a7023ecb
Author: Fabian Groffen <grobian <AT> gentoo <DOT> org>
AuthorDate: Wed Mar 6 11:06:31 2019 +0000
Commit: Fabian Groffen <grobian <AT> gentoo <DOT> 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 <grobian <AT> 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("<html>")
@@ -145,7 +147,7 @@ with open(os.path.join(resultsdir, 'index.html'), "w") as h:
h.write("<th>architecture</th>")
h.write("<th>last successful run</th><th>last failed run</th>")
h.write("<th>failure</th>")
- for arch in archs:
+ for arch in sarchs:
fail, errcode, suc, et = archs[arch]
if not suc:
state = 'red'