From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:56365) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WH7A8-0006PX-GZ for qemu-devel@nongnu.org; Sat, 22 Feb 2014 02:38:21 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WH7A3-0007VD-FU for qemu-devel@nongnu.org; Sat, 22 Feb 2014 02:38:16 -0500 Received: from mx1.redhat.com ([209.132.183.28]:35334) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WH7A3-0007Uw-7w for qemu-devel@nongnu.org; Sat, 22 Feb 2014 02:38:11 -0500 Date: Sat, 22 Feb 2014 15:38:15 +0800 From: Fam Zheng Message-ID: <20140222073815.GA16767@T430.redhat.com> References: <1393032048-17982-1-git-send-email-benoit.canet@irqsave.net> <1393032048-17982-4-git-send-email-benoit.canet@irqsave.net> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline In-Reply-To: <1393032048-17982-4-git-send-email-benoit.canet@irqsave.net> 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: =?iso-8859-1?Q?Beno=EEt?= Canet Cc: kwolf@redhat.com, mreitz@redhat.com, qemu-devel@nongnu.org, stefanha@redhat.com, Benoit Canet On Sat, 02/22 02:20, Beno=EEt Canet wrote: > Quorum is not compiled by default: make the quorum 081 test aware of th= is. >=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_qe= mu_io > } > =20 > +test_quorum=3D$(qemu-img --help|grep quorum) > +[ "$test_quorum" =3D "" ] && _supported_fmt quorum > + How does this disable the test? When quorum is not compiled, the two line= s are no-op. Did you test it? qemu-img should be $QEMU_IMG. I think you mean this: $QEMU_IMG --help | grep -q quorum && _not_run "quorum is not compiled= " Thanks, Fam