mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-06 00:10:20 +01:00
ci/lava: Bypass arg list to print_log function
Signed-off-by: Guilherme Gallo <guilherme.gallo@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22870>
This commit is contained in:
parent
1fc40c081e
commit
3d4ceb2aee
1 changed files with 3 additions and 5 deletions
|
|
@ -279,16 +279,14 @@ def fix_lava_gitlab_section_log():
|
|||
|
||||
|
||||
|
||||
def print_log(msg: str) -> None:
|
||||
def print_log(msg: str, *args) -> None:
|
||||
# Reset color from timestamp, since `msg` can tint the terminal color
|
||||
print(f"{CONSOLE_LOG['RESET']}{datetime.now()}: {msg}")
|
||||
print(f"{CONSOLE_LOG['RESET']}{datetime.now()}: {msg}", *args)
|
||||
|
||||
|
||||
def fatal_err(msg, exception=None):
|
||||
colored_msg = f"{CONSOLE_LOG['FG_RED']}"
|
||||
f"{msg}"
|
||||
f"{CONSOLE_LOG['RESET']}"
|
||||
print_log(colored_msg)
|
||||
print_log(colored_msg, f"{msg}", f"{CONSOLE_LOG['RESET']}")
|
||||
if exception:
|
||||
raise exception
|
||||
sys.exit(1)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue