Received: from eggs.gnu.org ([2001:4830:134:3::10]:50985) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1biEjv-0003zv-BM for qemu-devel@nongnu.org; Fri, 09 Sep 2016 01:52:40 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1biEjs-0003wb-6E for qemu-devel@nongnu.org; Fri, 09 Sep 2016 01:52:39 -0400 Received: from mx1.redhat.com ([209.132.183.28]:56932) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1biEjs-0003wU-0Y for qemu-devel@nongnu.org; Fri, 09 Sep 2016 01:52:36 -0400 From: Fam Zheng Date: Fri, 9 Sep 2016 13:52:18 +0800 Message-Id: <1473400343-32619-5-git-send-email-famz@redhat.com> In-Reply-To: <1473400343-32619-1-git-send-email-famz@redhat.com> References: <1473400343-32619-1-git-send-email-famz@redhat.com> Subject: [Qemu-devel] [PULL 4/9] docker: debian-bootstrap.pre: print error messages to stderr List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Peter Maydell , Fam Zheng From: Sascha Silbe Send error messages where they belong so they're seen even if stdout is redirected to /dev/null. Signed-off-by: Sascha Silbe Message-Id: <1473192351-601-4-git-send-email-silbe@linux.vnet.ibm.com> Signed-off-by: Fam Zheng --- tests/docker/dockerfiles/debian-bootstrap.pre | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/docker/dockerfiles/debian-bootstrap.pre b/tests/docker/dockerfiles/debian-bootstrap.pre index 5d9c8d5..9b95a6b 100755 --- a/tests/docker/dockerfiles/debian-bootstrap.pre +++ b/tests/docker/dockerfiles/debian-bootstrap.pre @@ -13,7 +13,7 @@ exit_and_skip() # fakeroot is needed to run the bootstrap stage # if [ -z $FAKEROOT ]; then - echo "Please install fakeroot to enable bootstraping" + echo "Please install fakeroot to enable bootstraping" >&2 exit_and_skip fi @@ -38,7 +38,7 @@ if [ -z $DEBOOTSTRAP_DIR ]; then else DEBOOTSTRAP=${DEBOOTSTRAP_DIR}/debootstrap if [ ! -f $DEBOOTSTRAP ]; then - echo "Couldn't find script at ${DEBOOTSTRAP}" + echo "Couldn't find script at ${DEBOOTSTRAP}" >&2 exit_and_skip fi fi @@ -48,7 +48,7 @@ fi # BINFMT_DIR=/proc/sys/fs/binfmt_misc if [ ! -e $BINFMT_DIR ]; then - echo "binfmt_misc needs enabling for a QEMU bootstrap to work" + echo "binfmt_misc needs enabling for a QEMU bootstrap to work" >&2 exit_and_skip else # DEB_ARCH and QEMU arch names are not totally aligned @@ -76,7 +76,7 @@ else ;; esac if [ ! -e "${BINFMT_DIR}/$QEMU" ]; then - echo "No binfmt_misc rule to run $QEMU, can't bootstrap" + echo "No binfmt_misc rule to run $QEMU, can't bootstrap" >&2 exit_and_skip fi fi -- 2.7.4