ci: color [INF] for smoke testing as well

This commit is contained in:
Constrat
2026-02-11 22:50:05 +01:00
parent 56b1a049aa
commit 0b4f57b547
3 changed files with 7 additions and 0 deletions

View File

@@ -35,6 +35,8 @@ if ($error_client.Count -gt 0) {
Get-Content ./install/debug/asst_$client.log | ForEach-Object {
if ($_ -match $pattern) {
Write-Host $_ -ForegroundColor DarkRed
} elseif ($_ -match "[INF]") {
Write-Host $_ -ForegroundColor Cyan
} else {
Write-Host $_
}

View File

@@ -43,6 +43,9 @@ if [ -n "$error_clients" ]; then
*"[ERR]"*)
printf "\033[31m%s\033[0m\n" "$line"
;;
*"[INF]"*)
printf "\033[36m%s\033[0m\n" "$line"
;;
*)
echo "$line"
;;

View File

@@ -36,6 +36,8 @@ if [[ ${#error_clients} -gt 0 ]]; then
while IFS= read -r line; do
if [[ "$line" == *"[ERR]"* ]]; then
print -P "%F{red}${line}%f"
elif [[ "$line" == *"[INF]"* ]]; then
print -P "%F{cyan}${line}%f"
else
echo "$line"
fi