From 86eea326dba51f15f7d53a8e00b4ca1b294609a6 Mon Sep 17 00:00:00 2001 From: leonnicolas Date: Mon, 5 Jul 2021 22:09:43 +0200 Subject: [PATCH] e2e/lib.sh: print to stderr in retry This way callers of retry can check against the returned value and not the logged strings. Signed-off-by: leonnicolas --- e2e/lib.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/e2e/lib.sh b/e2e/lib.sh index 7aafa364..04e6566c 100755 --- a/e2e/lib.sh +++ b/e2e/lib.sh @@ -16,9 +16,9 @@ retry() { if "$@"; then return 0 else - printf "%s(attempt %d/%d)\n" "$ERROR" "$c" "$COUNT" | color "$YELLOW" + printf "%s(attempt %d/%d)\n" "$ERROR" "$c" "$COUNT" | color "$YELLOW" 1>&2 if [ "$c" != "$COUNT" ]; then - printf "retrying in %d seconds...\n" "$SLEEP" | color "$YELLOW" + printf "retrying in %d seconds...\n" "$SLEEP" | color "$YELLOW" 1>&2 sleep "$SLEEP" fi fi