status: Tweak colorization.
authorLudovic Courtès <ludo@gnu.org>
Fri, 28 Sep 2018 21:34:09 +0000 (23:34 +0200)
committerLudovic Courtès <ludo@gnu.org>
Fri, 28 Sep 2018 21:34:09 +0000 (23:34 +0200)
* guix/status.scm (colorize-log-line): Add "\<" before "FAIL" (to
distinguish from "XFAIL".
Use MAGENTA instead of ORANGE, which doesn't exist.

guix/status.scm

index afa3c65..b19f019 100644 (file)
@@ -275,10 +275,10 @@ on."
     GREEN    BOLD GREEN          RESET  GREEN  BLUE)
    ("^(phase)(.*)(failed after)(.*)(seconds)(.*)"
     RED BLUE RED BLUE RED BLUE)
-   ("^(.*)(error|fail|failed|FAIL|FAILED)([[:blank:]]*)(:)(.*)"
+   ("^(.*)(error|fail|failed|\\<FAIL|FAILED)([[:blank:]]*)(:)(.*)"
     RESET  RED                           BOLD         BOLD BOLD)
    ("^(.*)(warning)([[:blank:]]*)(:)(.*)"
-    RESET  ORANGE   BOLD        BOLD BOLD)))
+    RESET  MAGENTA   BOLD        BOLD BOLD)))
 
 (define* (print-build-event event old-status status
                             #:optional (port (current-error-port))