From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:50624) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WHBDi-0005lU-DE for qemu-devel@nongnu.org; Sat, 22 Feb 2014 06:58:19 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WHBDd-00010S-9q for qemu-devel@nongnu.org; Sat, 22 Feb 2014 06:58:14 -0500 Received: from lnantes-156-75-100-125.w80-12.abo.wanadoo.fr ([80.12.84.125]:58734 helo=paradis.irqsave.net) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WHBDd-00010H-3q for qemu-devel@nongnu.org; Sat, 22 Feb 2014 06:58:09 -0500 Date: Sat, 22 Feb 2014 12:58:06 +0100 From: =?iso-8859-1?Q?Beno=EEt?= Canet Message-ID: <20140222115806.GA3245@irqsave.net> References: <1393032048-17982-1-git-send-email-benoit.canet@irqsave.net> <1393032048-17982-4-git-send-email-benoit.canet@irqsave.net> <20140222073815.GA16767@T430.redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline In-Reply-To: <20140222073815.GA16767@T430.redhat.com> Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] [PATCH V2 3/3] qemu-io-test: Disable Quorum test when not compiled in. List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Fam Zheng Cc: =?iso-8859-1?Q?Beno=EEt?= Canet , kwolf@redhat.com, qemu-devel@nongnu.org, stefanha@redhat.com, mreitz@redhat.com The Saturday 22 Feb 2014 =E0 15:38:15 (+0800), Fam Zheng wrote : > On Sat, 02/22 02:20, Beno=EEt Canet wrote: > > Quorum is not compiled by default: make the quorum 081 test aware of = this. > >=20 > > Signed-off-by: Benoit Canet > > --- > > tests/qemu-iotests/081 | 3 +++ > > 1 file changed, 3 insertions(+) > >=20 > > diff --git a/tests/qemu-iotests/081 b/tests/qemu-iotests/081 > > index f053f11..c1078f6 100755 > > --- a/tests/qemu-iotests/081 > > +++ b/tests/qemu-iotests/081 > > @@ -56,6 +56,9 @@ function run_qemu() > > do_run_qemu "$@" 2>&1 | _filter_testdir | _filter_qmp | _filter_= qemu_io > > } > > =20 > > +test_quorum=3D$(qemu-img --help|grep quorum) > > +[ "$test_quorum" =3D "" ] && _supported_fmt quorum > > + >=20 > How does this disable the test? When quorum is not compiled, the two li= nes are > no-op. Did you test it? Yes I did test it. It works. >=20 > qemu-img should be $QEMU_IMG. >=20 > I think you mean this: >=20 > $QEMU_IMG --help | grep -q quorum && _not_run "quorum is not compil= ed" >=20 > Thanks, > Fam