commit:     120396407992ebdf3365e8e792d15a34d283a805
Author:     Fabian Groffen <grobian <AT> gentoo <DOT> org>
AuthorDate: Fri Nov 27 10:58:05 2020 +0000
Commit:     Fabian Groffen <grobian <AT> gentoo <DOT> org>
CommitDate: Fri Nov 27 10:58:55 2020 +0000
URL:        https://gitweb.gentoo.org/repo/proj/prefix.git/commit/?id=12039640

scripts/auto-bootstraps/analyse_result: add GCC tag for macOS

Signed-off-by: Fabian Groffen <grobian <AT> gentoo.org>

 scripts/auto-bootstraps/analyse_result.py | 11 ++++++++++-
 1 file changed, 10 insertions(+), 1 deletion(-)

diff --git a/scripts/auto-bootstraps/analyse_result.py 
b/scripts/auto-bootstraps/analyse_result.py
index 871692d2e3..e7486e3226 100755
--- a/scripts/auto-bootstraps/analyse_result.py
+++ b/scripts/auto-bootstraps/analyse_result.py
@@ -121,6 +121,7 @@ with os.scandir(resultsdir) as it:
             elapsedtime = None
             haslssl = False
             snapshot = None
+            darwingcc = False
 
             elapsedf = os.path.join(resultsdir, arch, "%s" % d, "elapsedtime")
             if os.path.exists(elapsedf):
@@ -150,11 +151,14 @@ with os.scandir(resultsdir) as it:
                                 snapshot = re.split('[-.]', x)[2]
                         elif 'total size is' in x:
                             snapshot = 'rsync'
+                        elif 'Darwin with GCC toolchain' in x:
+                            darwingcc = True
 
             infos[d] = {
                     'elapsedtime': elapsedtime,
                     'libressl': haslssl,
-                    'snapshot': snapshot
+                    'snapshot': snapshot,
+                    'darwingcc': darwingcc
             }
 
         archs[arch] = (fail, state, suc, infos)
@@ -182,6 +186,11 @@ display: inline-block; font-size: x-small; padding: 3px 
4px; text-transform: upp
         tags = tags + '''
 <span style="border-radius: 5px; background-color: darkblue; color: white;
 display: inline-block; font-size: x-small; padding: 3px 4px; text-transform: 
uppercase !important;">''' + snap + '''</span>
+'''
+
+    if infos.get('darwingcc', False):
+        tags = tags + '''
+<span style="border-radius: 5px; background-color: dark-green; color: white; 
display: inline-block; font-size: x-small; padding: 3px 4px; text-transform: 
uppercase !important;">GCC</span>
 '''
 
     return tags

Reply via email to