浏览代码

Fix retry.sh to more reliably provide command error output

Tianon Gravi 6 年之前
父节点
当前提交
b566fadf8a
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      test/retry.sh

+ 1 - 1
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