ci/lava: Make hung job status yellow

It will help to know what happened to a non-successful job.

Signed-off-by: Guilherme Gallo <guilherme.gallo@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17389>
This commit is contained in:
Guilherme Gallo 2022-07-06 23:19:53 -03:00 committed by Marge Bot
parent 2c51b7a9c9
commit daff21ef55
2 changed files with 6 additions and 1 deletions

View File

@ -217,7 +217,11 @@ def _call_proxy(fn, *args):
class LAVAJob:
COLOR_STATUS_MAP = {"pass": CONSOLE_LOG["FG_GREEN"]}
COLOR_STATUS_MAP = {
"pass": CONSOLE_LOG["FG_GREEN"],
"hung": CONSOLE_LOG["FG_YELLOW"],
"fail": CONSOLE_LOG["FG_RED"],
}
def __init__(self, proxy, definition):
self.job_id = None

View File

@ -1,6 +1,7 @@
CONSOLE_LOG = {
"FG_GREEN": "\x1b[1;32;5;197m",
"FG_RED": "\x1b[1;38;5;197m",
"FG_YELLOW": "\x1b[1;33;5;197m",
"RESET": "\x1b[0m",
"UNDERLINED": "\x1b[3m",
"BOLD": "\x1b[1m",