From 5b750ca1946e08d64de3fd02f0a47e4f8680c500 Mon Sep 17 00:00:00 2001 From: Constrat <56174894+Constrat@users.noreply.github.com> Date: Sun, 14 Sep 2025 18:48:47 +0200 Subject: [PATCH] fix: smoke-testing script --- tools/SmokeTesting/run_tests.zsh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/SmokeTesting/run_tests.zsh b/tools/SmokeTesting/run_tests.zsh index cb6b013cab..599c44afdb 100755 --- a/tools/SmokeTesting/run_tests.zsh +++ b/tools/SmokeTesting/run_tests.zsh @@ -17,7 +17,7 @@ for client in "${clients[@]}"; do client_map+=("$client") done -for i in {1..${#pids}}; do +for i in {0..$(( ${#pids} - 1 ))}; do pid=${pids[$i]} client=${client_map[$i]} @@ -34,7 +34,7 @@ done if [[ ${#error_clients} -gt 0 ]]; then for client in "${error_clients[@]}"; do while IFS= read -r line; do - if [[ "$line" =~ "\[ERR\]" ]]; then + if [[ "$line" =~ (\[ERR\]) ]]; then print -P "%F{red}${line}%f" else echo "$line"