Received: from eggs.gnu.org ([2001:4830:134:3::10]:55975) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fDw6W-0006OB-4R for qemu-devel@nongnu.org; Wed, 02 May 2018 14:03:49 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fDw6V-0001KZ-8J for qemu-devel@nongnu.org; Wed, 02 May 2018 14:03:48 -0400 References: <20180421165423.30759-1-mreitz@redhat.com> <20180421165423.30759-8-mreitz@redhat.com> From: John Snow Message-ID: <53a4f279-49cc-7bf3-824a-4cb98fd9590c@redhat.com> Date: Wed, 2 May 2018 14:03:41 -0400 MIME-Version: 1.0 In-Reply-To: <20180421165423.30759-8-mreitz@redhat.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [Qemu-block] [PATCH 7/7] iotests: Rework 113 List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Max Reitz , qemu-block@nongnu.org Cc: Kevin Wolf , qemu-devel@nongnu.org On 04/21/2018 12:54 PM, Max Reitz wrote: > This test case has been broken since 398e6ad014df261d (roughly half a > year). qemu-img amend requires its output image to be R/W, so it opens > it as such; the node is then turned into an read-only node automatically > which is now accompanied by a warning, however. This warning has not > been part of the reference output. > > For one thing, this warning shows that we cannot keep the test case as > it is. We would need a format that has no create_opts but that does > have write support -- we do not have such a format, though. > > Another thing is that qemu now actually checks whether an image format > supports amendment instead of whether it has create_opts (since the > former always implies the latter). So we can now use any format that > does not support amendment (even if it supports creation) and thus test > the same code path. > > The reason nobody has noticed the breakage until now of course is the > fact that nobody runs the iotests for nbd+bochs. There actually was > never any reason to set the protocol to "nbd" but because that was > technically correct; functionally it made no difference. So that is the > first thing we are going to change: Make the protocol "file" instead so > that people might actually notice breakage here. > > Secondly, now that bochs no longer works for the amend test case, we > have to change the format there anyway. Set let us just bend the truth > a bit, declare this test a raw test. In fact, that does not even > concern the bochs test cases, other than the output now reading 'bochs' > instead of 'IMGFMT'. > > So with this test now being a raw test, we can rework the amend test > case to use raw instead. > > Signed-off-by: Max Reitz Well, it passes... Not sure if I'm wild about the format change, it sounds like a failure of our CI more than something that needed to change in the test, but... shrug. Tested-by: John Snow