From 5f93bad0d8e148224386f2f1df7b3588856579de Mon Sep 17 00:00:00 2001 From: Andrei Aaron Date: Fri, 15 Nov 2024 08:19:06 +0000 Subject: [PATCH] chore: fix search for 'no digests left, finished' in nightly job 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 12b95e19b..2d24b78c5 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'"