Received: from eggs.gnu.org ([2001:4830:134:3::10]:35340) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1buPTp-0000XO-IX for qemu-devel@nongnu.org; Wed, 12 Oct 2016 15:46:22 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1buPTn-0008RL-KF for qemu-devel@nongnu.org; Wed, 12 Oct 2016 15:46:20 -0400 References: <20160928204644.11523-1-mreitz@redhat.com> <1b3f7281-eaa6-586b-0f3c-f30cebf88322@linux.vnet.ibm.com> From: Max Reitz Message-ID: <59343543-96c7-ebc1-5889-7259df3a2c90@redhat.com> Date: Wed, 12 Oct 2016 21:46:11 +0200 MIME-Version: 1.0 In-Reply-To: <1b3f7281-eaa6-586b-0f3c-f30cebf88322@linux.vnet.ibm.com> Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="dn1B8m07clTdLogC7soGA0EpAiDhE7QVD" Subject: Re: [Qemu-devel] [Qemu-block] [PATCH v4 0/3] iotests: Fix test 162 List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Hao QingFeng , qemu-block@nongnu.org Cc: Kevin Wolf , Sascha Silbe , qemu-devel@nongnu.org, Stefan Hajnoczi This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --dn1B8m07clTdLogC7soGA0EpAiDhE7QVD From: Max Reitz To: Hao QingFeng , qemu-block@nongnu.org Cc: Kevin Wolf , Sascha Silbe , qemu-devel@nongnu.org, Stefan Hajnoczi Message-ID: <59343543-96c7-ebc1-5889-7259df3a2c90@redhat.com> Subject: Re: [Qemu-block] [PATCH v4 0/3] iotests: Fix test 162 References: <20160928204644.11523-1-mreitz@redhat.com> <1b3f7281-eaa6-586b-0f3c-f30cebf88322@linux.vnet.ibm.com> In-Reply-To: <1b3f7281-eaa6-586b-0f3c-f30cebf88322@linux.vnet.ibm.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On 12.10.2016 10:55, Hao QingFeng wrote: > Max, >=20 > Just a common question for this case, if sshx block driver wasn't built= > into qemu-img, this case would fail as below: Good point, and thanks for bringing it up, but it's not directly linked to this series other than by its subject, of course, so I'd rather add a fix on top. > exec /home/haoqf/KVMonz/qemu/tests/qemu-iotests/../../qemu-img info > --image-opts driver=3Dssh,host=3Dlocalhost,port=3D0.42,path=3D/foo > qemu-img: Could not open > 'driver=3Dssh,host=3Dlocalhost,port=3D0.42,path=3D/foo': Unknown driver= 'ssh' >=20 > Adding 162.notrun can bypass this case but it would skip it even if > qemu-img has sshx block driver, in which case I think it should be run.= >=20 > So How about adding a script to dynamically check at runtime if the > current env qemu-img can meet the requirement to run the test or not? Unfortunately, the list of block drivers listed by will not contain ssh if ssh is built as a module, which is possible. This is a bug that should be fixed, but I'd rather do so in a separate series from this one. In any case, once it is fixed I'd rather just take the approach quorum tests take already (e.g. test 081), which is something like: test_ssh=3D$($QEMU_IMG --help | grep '^Supported formats:.* ssh\( \|$\)')= [ "$test_ssh" =3D "" ] && _notrun "ssh support required" Max --dn1B8m07clTdLogC7soGA0EpAiDhE7QVD Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- iQEvBAEBCAAZBQJX/pMDEhxtcmVpdHpAcmVkaGF0LmNvbQAKCRD0B9sAYdXPQAAV B/43smKvaV+3/6VwWfiPZA9Fy2z0vnUsfnl6Jcg0RYqJN3DB/nJEFZluG0L0WWqe 1bM+9LFV2+eElNZKyC4PD/ujAyl8Ukm6Lxg7dv0umDbB0HKLyFLr1ocYNz3UMH+v wz2BV4K1NEmR18SUGS9yVz/tMEEQMHCTUYg+GtgTWDG4XUuprb8gISpTb/i05Hhi BR/IWkfMP0x9erux2R+6qcz1NG6ewsBdtYowBiOp3i/Ak099bUxizr6A5T/UxCAA 5cUTuM1vHaZVi2cXxMb3dQD1hnfjzW5lUwxMPc3IGMQnAafDi8cjmp9tWfWYpFkA 8KlOuQi2BnCpjVmy2szGepL3 =kbFR -----END PGP SIGNATURE----- --dn1B8m07clTdLogC7soGA0EpAiDhE7QVD--