qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH] iotests: Update 049 output
@ 2017-03-01 15:26 Fam Zheng
  2017-03-01 15:40 ` Eric Blake
  2017-03-01 15:45 ` Kevin Wolf
  0 siblings, 2 replies; 4+ messages in thread
From: Fam Zheng @ 2017-03-01 15:26 UTC (permalink / raw)
  To: qemu-devel
  Cc: Eric Blake, Kevin Wolf, Max Reitz, qemu-block, Markus Armbruster

75cdcd155 improved the error message, which affects the reference
output. Let's sync it up.

Note that previously '1kilobyte' was treated like '1k', but now it's an
error. Looking at the commit in question, this appears to be intended.

Signed-off-by: Fam Zheng <famz@redhat.com>
---
 tests/qemu-iotests/049.out | 14 +++++++++-----
 1 file changed, 9 insertions(+), 5 deletions(-)

diff --git a/tests/qemu-iotests/049.out b/tests/qemu-iotests/049.out
index 4673b67..17c2eb0 100644
--- a/tests/qemu-iotests/049.out
+++ b/tests/qemu-iotests/049.out
@@ -95,14 +95,14 @@ qemu-img create -f qcow2 TEST_DIR/t.qcow2 -- -1024
 qemu-img: Image size must be less than 8 EiB!
 
 qemu-img create -f qcow2 -o size=-1024 TEST_DIR/t.qcow2
-qemu-img: Parameter 'size' expects a non-negative number below 2^64
+qemu-img: Value '-1024' is too large for parameter 'size'
 qemu-img: TEST_DIR/t.qcow2: Invalid options for file format 'qcow2'
 
 qemu-img create -f qcow2 TEST_DIR/t.qcow2 -- -1k
 qemu-img: Image size must be less than 8 EiB!
 
 qemu-img create -f qcow2 -o size=-1k TEST_DIR/t.qcow2
-qemu-img: Parameter 'size' expects a non-negative number below 2^64
+qemu-img: Value '-1k' is too large for parameter 'size'
 qemu-img: TEST_DIR/t.qcow2: Invalid options for file format 'qcow2'
 
 qemu-img create -f qcow2 TEST_DIR/t.qcow2 -- 1kilobyte
@@ -110,15 +110,19 @@ qemu-img: Invalid image size specified! You may use k, M, G, T, P or E suffixes
 qemu-img: kilobytes, megabytes, gigabytes, terabytes, petabytes and exabytes.
 
 qemu-img create -f qcow2 -o size=1kilobyte TEST_DIR/t.qcow2
-Formatting 'TEST_DIR/t.qcow2', fmt=qcow2 size=1024 encryption=off cluster_size=65536 lazy_refcounts=off refcount_bits=16
+qemu-img: Parameter 'size' expects a non-negative number below 2^64
+Optional suffix k, M, G, T, P or E means kilo-, mega-, giga-, tera-, peta-
+and exabytes, respectively.
+qemu-img: TEST_DIR/t.qcow2: Invalid options for file format 'qcow2'
 
 qemu-img create -f qcow2 TEST_DIR/t.qcow2 -- foobar
 qemu-img: Invalid image size specified! You may use k, M, G, T, P or E suffixes for
 qemu-img: kilobytes, megabytes, gigabytes, terabytes, petabytes and exabytes.
 
 qemu-img create -f qcow2 -o size=foobar TEST_DIR/t.qcow2
-qemu-img: Parameter 'size' expects a size
-You may use k, M, G or T suffixes for kilobytes, megabytes, gigabytes and terabytes.
+qemu-img: Parameter 'size' expects a non-negative number below 2^64
+Optional suffix k, M, G, T, P or E means kilo-, mega-, giga-, tera-, peta-
+and exabytes, respectively.
 qemu-img: TEST_DIR/t.qcow2: Invalid options for file format 'qcow2'
 
 == Check correct interpretation of suffixes for cluster size ==
-- 
2.9.3

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [Qemu-devel] [PATCH] iotests: Update 049 output
  2017-03-01 15:26 [Qemu-devel] [PATCH] iotests: Update 049 output Fam Zheng
@ 2017-03-01 15:40 ` Eric Blake
  2017-03-01 15:45 ` Kevin Wolf
  1 sibling, 0 replies; 4+ messages in thread
From: Eric Blake @ 2017-03-01 15:40 UTC (permalink / raw)
  To: Fam Zheng, qemu-devel
  Cc: Kevin Wolf, Max Reitz, qemu-block, Markus Armbruster

[-- Attachment #1: Type: text/plain, Size: 615 bytes --]

On 03/01/2017 09:26 AM, Fam Zheng wrote:
> 75cdcd155 improved the error message, which affects the reference
> output. Let's sync it up.
> 
> Note that previously '1kilobyte' was treated like '1k', but now it's an
> error. Looking at the commit in question, this appears to be intended.
> 
> Signed-off-by: Fam Zheng <famz@redhat.com>
> ---
>  tests/qemu-iotests/049.out | 14 +++++++++-----
>  1 file changed, 9 insertions(+), 5 deletions(-)
> 

Reviewed-by: Eric Blake <eblake@redhat.com>

-- 
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 --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [Qemu-devel] [PATCH] iotests: Update 049 output
  2017-03-01 15:26 [Qemu-devel] [PATCH] iotests: Update 049 output Fam Zheng
  2017-03-01 15:40 ` Eric Blake
@ 2017-03-01 15:45 ` Kevin Wolf
  2017-03-01 16:09   ` Fam Zheng
  1 sibling, 1 reply; 4+ messages in thread
From: Kevin Wolf @ 2017-03-01 15:45 UTC (permalink / raw)
  To: Fam Zheng
  Cc: qemu-devel, Eric Blake, Max Reitz, qemu-block, Markus Armbruster

Am 01.03.2017 um 16:26 hat Fam Zheng geschrieben:
> 75cdcd155 improved the error message, which affects the reference
> output. Let's sync it up.
> 
> Note that previously '1kilobyte' was treated like '1k', but now it's an
> error. Looking at the commit in question, this appears to be intended.
> 
> Signed-off-by: Fam Zheng <famz@redhat.com>

Markus alread sent a fix: 'option: Tweak invalid size error message and
unbreak iotest 049'

Kevin

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [Qemu-devel] [PATCH] iotests: Update 049 output
  2017-03-01 15:45 ` Kevin Wolf
@ 2017-03-01 16:09   ` Fam Zheng
  0 siblings, 0 replies; 4+ messages in thread
From: Fam Zheng @ 2017-03-01 16:09 UTC (permalink / raw)
  To: Kevin Wolf
  Cc: qemu-devel, Eric Blake, Max Reitz, qemu-block, Markus Armbruster

On Wed, 03/01 16:45, Kevin Wolf wrote:
> Am 01.03.2017 um 16:26 hat Fam Zheng geschrieben:
> > 75cdcd155 improved the error message, which affects the reference
> > output. Let's sync it up.
> > 
> > Note that previously '1kilobyte' was treated like '1k', but now it's an
> > error. Looking at the commit in question, this appears to be intended.
> > 
> > Signed-off-by: Fam Zheng <famz@redhat.com>
> 
> Markus alread sent a fix: 'option: Tweak invalid size error message and
> unbreak iotest 049'

Aha, that's good then.

Fam

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2017-03-01 16:09 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-03-01 15:26 [Qemu-devel] [PATCH] iotests: Update 049 output Fam Zheng
2017-03-01 15:40 ` Eric Blake
2017-03-01 15:45 ` Kevin Wolf
2017-03-01 16:09   ` Fam Zheng

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).