From: Eric Blake <eblake@redhat.com>
To: Kevin Wolf <kwolf@redhat.com>, qemu-devel@nongnu.org
Cc: pl@kamp.de, stefanha@redhat.com
Subject: Re: [Qemu-devel] [PATCH 2/2] qemu-iotests: Test progress output for conversion
Date: Mon, 03 Mar 2014 11:20:37 -0700 [thread overview]
Message-ID: <5314C7F5.4010701@redhat.com> (raw)
In-Reply-To: <1393855031-26915-3-git-send-email-kwolf@redhat.com>
[-- Attachment #1: Type: text/plain, Size: 1398 bytes --]
On 03/03/2014 06:57 AM, Kevin Wolf wrote:
> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
> ---
> tests/qemu-iotests/086 | 65 ++++++++++++++++++++++++++++++++++++++++++++++
> tests/qemu-iotests/086.out | 18 +++++++++++++
> tests/qemu-iotests/group | 1 +
> 3 files changed, 84 insertions(+)
> create mode 100755 tests/qemu-iotests/086
> create mode 100644 tests/qemu-iotests/086.out
>
> +
> +$QEMU_IMG convert -p -O $IMGFMT -f $IMGFMT "$TEST_IMG" "$TEST_IMG".base 2>&1 |\
> + _filter_testdir | sed -e 's/\r/\n/g'
\r is not portable sed. Alas, coming up with a portable way to
represent carriage return in sed is a bear, so I can live with this
reliance on GNU sed.
> +wrote 1048576/1048576 bytes at offset 33554432
> +1 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
> + (0.00/100%)
> + (25.00/100%)
> + (50.00/100%)
> + (75.00/100%)
> + (100.00/100%)
> + (100.00/100%)
Feels fragile (will it ALWAYS be done in chunks of 25% completion?) but
if it passes reliably, it's always better to have more test coverage.
Can we test the other commands that support -p? And is anyone
interested in adding -p support to more commands (there are several
long-running commands that could use it but don't have it yet).
--
Eric Blake eblake redhat com +1-919-301-3266
Libvirt virtualization library http://libvirt.org
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 604 bytes --]
next prev parent reply other threads:[~2014-03-03 18:21 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-03-03 13:57 [Qemu-devel] [PATCH 0/2] qemu-img convert: Fix progress output Kevin Wolf
2014-03-03 13:57 ` [Qemu-devel] [PATCH 1/2] " Kevin Wolf
2014-03-03 18:16 ` Eric Blake
2014-03-03 13:57 ` [Qemu-devel] [PATCH 2/2] qemu-iotests: Test progress output for conversion Kevin Wolf
2014-03-03 18:20 ` Eric Blake [this message]
2014-03-04 9:02 ` Kevin Wolf
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=5314C7F5.4010701@redhat.com \
--to=eblake@redhat.com \
--cc=kwolf@redhat.com \
--cc=pl@kamp.de \
--cc=qemu-devel@nongnu.org \
--cc=stefanha@redhat.com \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.