Received: from eggs.gnu.org ([2001:4830:134:3::10]:51414) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aTaPW-00026w-Ng for qemu-devel@nongnu.org; Wed, 10 Feb 2016 14:26:47 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aTaPU-0000Fm-AN for qemu-devel@nongnu.org; Wed, 10 Feb 2016 14:26:46 -0500 Received: from e06smtp17.uk.ibm.com ([195.75.94.113]:50429) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aTaPU-0000F2-0k for qemu-devel@nongnu.org; Wed, 10 Feb 2016 14:26:44 -0500 Received: from localhost by e06smtp17.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Wed, 10 Feb 2016 19:26:41 -0000 From: Sascha Silbe In-Reply-To: <56BB6231.3060103@redhat.com> References: <1455023713-104799-1-git-send-email-silbe@linux.vnet.ibm.com> <1455023713-104799-4-git-send-email-silbe@linux.vnet.ibm.com> <56BB6231.3060103@redhat.com> Date: Wed, 10 Feb 2016 20:26:42 +0100 Message-ID: <87mvr8cqod.fsf@oc4731375738.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] [PATCH 3/3] qemu-iotests: 140: use virtio-scsi instead of IDE List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Max Reitz , qemu-devel@nongnu.org, Alexander Graf , Kevin Wolf , qemu-block@nongnu.org Cc: Tu Bo Dear Max, Max Reitz writes: [tests/qemu-iotests/140] >> -_launch_qemu -drive if=3Dide,media=3Dcdrom,id=3Ddrv,file=3D"$TEST_IMG",= format=3D$IMGFMT \ >> - 2> >(_filter_nbd) >> +_launch_qemu -drive if=3Dnone,media=3Dcdrom,id=3Ddrv,file=3D"$TEST_IMG"= ,format=3D$IMGFMT \ >> + -device virtio-scsi -device scsi-cd,drive=3Ddrv 2> >(_filter_nbd) > > Why not just omit the device (and the media=3Dcdrom along with it, keeping > if=3Dnone)? This will change the reference output because there is no > longer any tray to be moved, but this will still test what it's supposed = to. > > (This may sound hypocritical coming from me, because I wrote this test > so I could have just done so in the first place; I guess I just didn't > realize that 'eject' works on device-less drives, too.) Is this supposed to work? I.e. can we rely on it? If so, that would certainly be the easier route for this particular test. Test coverage should be unaffected as 139 already tests ejection (using virtio, unlike 118 which is PC-only). The aliases patch has a value of its own, but that's a separate matter. Sascha --=20 Softwareentwicklung Sascha Silbe, Niederhofenstra=C3=9Fe 5/1, 71229 Leonberg https://se-silbe.de/ USt-IdNr. DE281696641