From 28ffa38170a32f37f914dc26da7a178146de3d8f Mon Sep 17 00:00:00 2001 From: Andrei Aaron Date: Fri, 15 Nov 2024 18:51:00 +0200 Subject: [PATCH] chore: fix search for 'no digests left, finished' in nightly job (#2784) Signed-off-by: Andrei Aaron --- test/blackbox/helpers_wait.bash | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/blackbox/helpers_wait.bash b/test/blackbox/helpers_wait.bash index 12b95e19..2d24b78c 100644 --- a/test/blackbox/helpers_wait.bash +++ b/test/blackbox/helpers_wait.bash @@ -13,7 +13,7 @@ function wait_str() { local search_term="$2" local wait_time="${3:-2m}" - (timeout $wait_time tail -F -n0 "$filepath" &) | grep -q "$search_term" && return 0 + (timeout $wait_time tail -F -n +1 "$filepath" &) | grep -q "$search_term" && return 0 echo "timeout of $wait_time reached. unable to find '$search_term' in '$filepath'"