From: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
To: Kevin Wolf <kwolf@redhat.com>
Cc: Denis Lunev <den@virtuozzo.com>,
"qemu-devel@nongnu.org" <qemu-devel@nongnu.org>,
"qemu-block@nongnu.org" <qemu-block@nongnu.org>,
"mreitz@redhat.com" <mreitz@redhat.com>
Subject: Re: [Qemu-devel] [PATCH 2/2] iotests: test mirroring qcow2 under raw format
Date: Tue, 13 Aug 2019 09:22:38 +0000 [thread overview]
Message-ID: <62c1749a-1114-6269-9ed7-5999cca4e6ad@virtuozzo.com> (raw)
In-Reply-To: <20190813091041.GA4663@localhost.localdomain>
13.08.2019 12:10, Kevin Wolf wrote:
> Am 12.08.2019 um 20:11 hat Vladimir Sementsov-Ogievskiy geschrieben:
>> Check that it is fixed by previous commit
>>
>> Signed-off-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
>> ---
>> tests/qemu-iotests/263 | 46 ++++++++++++++++++++++++++++++++++++++
>> tests/qemu-iotests/263.out | 12 ++++++++++
>> tests/qemu-iotests/group | 1 +
>> 3 files changed, 59 insertions(+)
>> create mode 100755 tests/qemu-iotests/263
>> create mode 100644 tests/qemu-iotests/263.out
>>
>> diff --git a/tests/qemu-iotests/263 b/tests/qemu-iotests/263
>> new file mode 100755
>> index 0000000000..dbe38e6c6c
>> --- /dev/null
>> +++ b/tests/qemu-iotests/263
>> @@ -0,0 +1,46 @@
>> +#!/usr/bin/env python
>> +#
>> +# Test mirroring qcow2 under raw-format
>> +#
>> +# Copyright (c) 2019 Virtuozzo International GmbH.
>> +#
>> +# This program is free software; you can redistribute it and/or modify
>> +# it under the terms of the GNU General Public License as published by
>> +# the Free Software Foundation; either version 2 of the License, or
>> +# (at your option) any later version.
>> +#
>> +# This program is distributed in the hope that it will be useful,
>> +# but WITHOUT ANY WARRANTY; without even the implied warranty of
>> +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
>> +# GNU General Public License for more details.
>> +#
>> +# You should have received a copy of the GNU General Public License
>> +# along with this program. If not, see <http://www.gnu.org/licenses/>.
>> +#
>> +
>> +import iotests
>> +from iotests import qemu_img_create, qemu_io, filter_qemu_io, file_path, log
>> +
>> +iotests.verify_image_format(supported_fmts=['qcow2'])
>> +
>> +base, top, target = file_path('base', 'top', 'target')
>> +size = 1024 * 1024
>> +
>> +qemu_img_create('-f', iotests.imgfmt, base, str(size))
>> +log(filter_qemu_io(qemu_io('-f', iotests.imgfmt,
>> + '-c', 'write -P 1 0 1M', base)))
>> +qemu_img_create('-f', iotests.imgfmt, '-b', base, top, str(size))
>
> Who deletes these files at the end of the test? (There's a reason why
> all the other test cases uses 'with FilePath(...)'.)
>
file_path sets corresponding handling, it's alternative to FilePath
--
Best regards,
Vladimir
next prev parent reply other threads:[~2019-08-13 9:23 UTC|newest]
Thread overview: 38+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-08-12 18:11 [Qemu-devel] [PATCH 0/2] deal with BDRV_BLOCK_RAW Vladimir Sementsov-Ogievskiy
2019-08-12 18:11 ` [Qemu-devel] [PATCH 1/2] block/raw-format: switch to BDRV_BLOCK_DATA with BDRV_BLOCK_RECURSE Vladimir Sementsov-Ogievskiy
2019-08-13 11:04 ` Kevin Wolf
2019-08-13 11:28 ` Vladimir Sementsov-Ogievskiy
2019-08-13 12:01 ` Kevin Wolf
2019-08-13 13:21 ` [Qemu-devel] [Qemu-block] " Kevin Wolf
2019-08-13 14:46 ` Max Reitz
2019-08-13 14:43 ` [Qemu-devel] " Max Reitz
2019-08-13 14:56 ` Vladimir Sementsov-Ogievskiy
2019-08-13 15:03 ` Max Reitz
2019-08-13 15:22 ` Vladimir Sementsov-Ogievskiy
2019-08-13 16:07 ` Max Reitz
2019-08-13 15:41 ` Kevin Wolf
2019-08-13 15:54 ` Vladimir Sementsov-Ogievskiy
2019-08-13 16:08 ` Kevin Wolf
2019-08-13 16:32 ` Vladimir Sementsov-Ogievskiy
2019-08-14 6:27 ` Vladimir Sementsov-Ogievskiy
2019-08-13 16:21 ` Max Reitz
2019-08-12 18:11 ` [Qemu-devel] [PATCH 2/2] iotests: test mirroring qcow2 under raw format Vladimir Sementsov-Ogievskiy
2019-08-13 9:10 ` Kevin Wolf
2019-08-13 9:22 ` Vladimir Sementsov-Ogievskiy [this message]
2019-08-13 9:36 ` Kevin Wolf
2019-08-12 19:46 ` [Qemu-devel] [PATCH 0/2] deal with BDRV_BLOCK_RAW Max Reitz
2019-08-12 19:50 ` Max Reitz
2019-08-13 8:39 ` Vladimir Sementsov-Ogievskiy
2019-08-13 9:01 ` Vladimir Sementsov-Ogievskiy
2019-08-13 9:33 ` Vladimir Sementsov-Ogievskiy
2019-08-13 11:14 ` Vladimir Sementsov-Ogievskiy
2019-08-13 11:51 ` Kevin Wolf
2019-08-13 13:00 ` Vladimir Sementsov-Ogievskiy
2019-08-13 14:31 ` Max Reitz
2019-08-13 14:46 ` Vladimir Sementsov-Ogievskiy
2019-08-13 14:53 ` Max Reitz
2019-08-13 15:03 ` Kevin Wolf
2019-08-13 15:04 ` Max Reitz
2019-08-13 14:50 ` Eric Blake
2019-08-13 9:34 ` Kevin Wolf
2019-08-13 14:38 ` Max Reitz
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=62c1749a-1114-6269-9ed7-5999cca4e6ad@virtuozzo.com \
--to=vsementsov@virtuozzo.com \
--cc=den@virtuozzo.com \
--cc=kwolf@redhat.com \
--cc=mreitz@redhat.com \
--cc=qemu-block@nongnu.org \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).