Received: from eggs.gnu.org ([2001:4830:134:3::10]:60389) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dfZNn-0007s2-SY for qemu-devel@nongnu.org; Wed, 09 Aug 2017 18:23:21 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dfZNm-0005MW-PS for qemu-devel@nongnu.org; Wed, 09 Aug 2017 18:23:19 -0400 Sender: =?UTF-8?Q?Philippe_Mathieu=2DDaud=C3=A9?= References: <20170809215510.22802-1-pbonzini@redhat.com> <20170809215510.22802-11-pbonzini@redhat.com> From: =?UTF-8?Q?Philippe_Mathieu-Daud=c3=a9?= Message-ID: Date: Wed, 9 Aug 2017 19:23:11 -0300 MIME-Version: 1.0 In-Reply-To: <20170809215510.22802-11-pbonzini@redhat.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit Subject: Re: [Qemu-devel] [PATCH 10/12] qemu-iotests: get rid of $iam List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Paolo Bonzini , qemu-devel@nongnu.org Cc: kwolf@redhat.com, qemu-block@nongnu.org On 08/09/2017 06:55 PM, Paolo Bonzini wrote: > The variable is almost unused, and one of the two uses is actually > uninitialized. > > Signed-off-by: Paolo Bonzini Reviewed-by: Philippe Mathieu-Daudé > --- > tests/qemu-iotests/check | 5 +---- > tests/qemu-iotests/common.rc | 2 +- > 2 files changed, 2 insertions(+), 5 deletions(-) > > diff --git a/tests/qemu-iotests/check b/tests/qemu-iotests/check > index e5d1ae3d92..dc60e17e6a 100755 > --- a/tests/qemu-iotests/check > +++ b/tests/qemu-iotests/check > @@ -30,12 +30,9 @@ interrupt=true > # by default don't output timestamps > timestamp=${TIMESTAMP:=false} > > -# generic initialization > -iam=check > - > _init_error() > { > - echo "$iam: $1" >&2 > + echo "check: $1" >&2 > exit 1 > } > > diff --git a/tests/qemu-iotests/common.rc b/tests/qemu-iotests/common.rc > index 7046a83974..d0aa22543e 100644 > --- a/tests/qemu-iotests/common.rc > +++ b/tests/qemu-iotests/common.rc > @@ -43,7 +43,7 @@ poke_file() > > if ! . ./common.config > then > - echo "$iam: failed to source common.config" > + echo "$0: failed to source common.config" > exit 1 > fi > >