From b566fadf8aafe098226d19b4add255c47eab59e4 Mon Sep 17 00:00:00 2001 From: Tianon Gravi Date: Fri, 9 Aug 2019 16:20:33 -0700 Subject: [PATCH] Fix retry.sh to more reliably provide command error output --- test/retry.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/retry.sh b/test/retry.sh index 1643fb2302..7c582b616c 100755 --- a/test/retry.sh +++ b/test/retry.sh @@ -29,7 +29,7 @@ while ! eval "$@" &> /dev/null; do if [ $tries -le 0 ]; then echo >&2 "${image:-the container} failed to accept connections in a reasonable amount of time!" [ "$cid" ] && ( set -x && docker logs "$cid" ) >&2 || true - eval "$@" # to hopefully get a useful error message + ( set -x && eval "$@" ) >&2 || true # to hopefully get a useful error message false fi if [ "$cid" ] && [ "$(docker inspect -f '{{.State.Running}}' "$cid" 2>/dev/null)" != 'true' ]; then