mirror of
https://github.com/MaaAssistantArknights/MaaAssistantArknights.git
synced 2026-07-01 01:10:34 +08:00
ci: color [INF] for smoke testing as well
This commit is contained in:
@@ -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 $_
|
||||
}
|
||||
|
||||
@@ -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"
|
||||
;;
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user