From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:37394) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X1cHb-0000hc-6T for qemu-devel@nongnu.org; Mon, 30 Jun 2014 10:10:20 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1X1cHS-0002E9-0d for qemu-devel@nongnu.org; Mon, 30 Jun 2014 10:10:11 -0400 Received: from mail-we0-x234.google.com ([2a00:1450:400c:c03::234]:36895) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X1cHR-0002Ba-Q8 for qemu-devel@nongnu.org; Mon, 30 Jun 2014 10:10:01 -0400 Received: by mail-we0-f180.google.com with SMTP id x48so8180165wes.25 for ; Mon, 30 Jun 2014 07:10:01 -0700 (PDT) Date: Mon, 30 Jun 2014 16:09:57 +0200 From: Stefan Hajnoczi Message-ID: <20140630140957.GB10229@stefanha-thinkpad.redhat.com> References: <1403900236-3087-1-git-send-email-benoit.canet@irqsave.net> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="l76fUT7nc3MelDdI" Content-Disposition: inline In-Reply-To: <1403900236-3087-1-git-send-email-benoit.canet@irqsave.net> Subject: Re: [Qemu-devel] [PATCH v2] qemu-iotests: Disable Quorum testing in 041 when Quorum is not builtin List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: =?iso-8859-1?Q?Beno=EEt?= Canet Cc: kwolf@redhat.com, qemu-devel@nongnu.org, Benoit Canet --l76fUT7nc3MelDdI Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Jun 27, 2014 at 10:17:16PM +0200, Beno=EEt Canet wrote: I think this patch can be boiled down to 2 lines: if __name__ =3D=3D '__main__': + if 'quorum' not in iotests.qemu_img('--help'): + iotests.notrun('not built with quorum support') iotests.main(supported_fmts=3D['qcow2', 'qed']) What do you think? --l76fUT7nc3MelDdI Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQEcBAEBAgAGBQJTsW+1AAoJEJykq7OBq3PIVF4IAL5QEmGMjPw/csoDN3VJDV0V HWIF+lDA6Tty0LD6PULEUTTtYi8L5M2gysv7cI3JP8AlDZWxahvctpXDzwfDdhBt wW+7UocffcxNSdvubIyrOk7u3J3JXXPJGYu+5M5MTCgw2wr8TJc8JyLUmQDBsNkN L380kDhMosI7uK5U3Ig/Tc2B+3p/BbSS96LEpx0nd8axp2CO31r1SxEN/WAypJlz 3DO3ae46jtTrzKap5NdiydjHa2BhIa9KahmBbTCly5WMQlFEiL46kQHkLpwHcb7x mftbpiG+rH0wFH3f72sunlzQ1id8AlzfeelWesQYxwWEg5QK23oLWPPfpLJcVEs= =CJ1W -----END PGP SIGNATURE----- --l76fUT7nc3MelDdI--