summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFabian Groffen <grobian@gentoo.org>2019-03-06 12:06:31 +0100
committerFabian Groffen <grobian@gentoo.org>2019-03-06 12:09:06 +0100
commit99283251cb6a8f2f5a004b5024345f72a7023ecb (patch)
tree9815cdba64ec20fe80880de50a6018164c800101 /scripts/auto-bootstraps
parentbootstrap-prefix.sh: fail if stage1 make fails to build (diff)
downloadprefix-99283251cb6a8f2f5a004b5024345f72a7023ecb.tar.gz
prefix-99283251cb6a8f2f5a004b5024345f72a7023ecb.tar.bz2
prefix-99283251cb6a8f2f5a004b5024345f72a7023ecb.zip
analyse_result: group archs by clumpsily sorting
Signed-off-by: Fabian Groffen <grobian@gentoo.org>
Diffstat (limited to 'scripts/auto-bootstraps')
-rwxr-xr-xscripts/auto-bootstraps/analyse_result.py4
1 files changed, 3 insertions, 1 deletions
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'