qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH v2 4/4] qemu-iotests: Check common namespace for


From: Fam Zheng
Subject: Re: [Qemu-devel] [PATCH v2 4/4] qemu-iotests: Check common namespace for id and node-name
Date: Mon, 21 Apr 2014 15:01:06 +0800
User-agent: Mutt/1.5.23 (2014-03-12)

On Thu, 04/17 17:48, Kevin Wolf wrote:
> A name that is taken by an ID can't be taken by a node-name at the same
> time. Check that conflicts are correctly detected.
> 
> Signed-off-by: Kevin Wolf <address@hidden>
> ---
>  tests/qemu-iotests/087     | 52 
> ++++++++++++++++++++++++++++++++++++++++++++++
>  tests/qemu-iotests/087.out |  5 +++++
>  2 files changed, 57 insertions(+)
> 
>  
> diff --git a/tests/qemu-iotests/087.out b/tests/qemu-iotests/087.out
> index 479bf86..7fbee3f 100644
> --- a/tests/qemu-iotests/087.out
> +++ b/tests/qemu-iotests/087.out
> @@ -20,6 +20,11 @@ QMP_VERSION
>  {"return": {}}
>  {"return": {}}
>  {"error": {"class": "GenericError", "desc": "Device with id 'disk' already 
> exists"}}
> +{"error": {"class": "GenericError", "desc": "Device with node-name 
> 'test-node' already exists"}}
> +main-loop: WARNING: I/O thread spun for 1000 iterations

Is this warning message deterministic? I think we could avoid the guest code by
'-machine accel=qtest'.

BTW I intended to write a patch for this but it would have some overlap with
Jeff's qemu-iotests common.qemu series:

https://lists.gnu.org/archive/html/qemu-devel/2014-04/msg01733.html

Fam

> +{"error": {"class": "GenericError", "desc": "could not open disk image 
> disk2: node-name=disk is conflicting with a device id"}}
> +{"error": {"class": "GenericError", "desc": "could not open disk image 
> disk2: Duplicate node name"}}
> +{"error": {"class": "GenericError", "desc": "could not open disk image 
> disk3: node-name=disk3 is conflicting with a device id"}}
>  {"return": {}}
>  {"timestamp": {"seconds":  TIMESTAMP, "microseconds":  TIMESTAMP}, "event": 
> "SHUTDOWN"}
>  {"timestamp": {"seconds":  TIMESTAMP, "microseconds":  TIMESTAMP}, "event": 
> "DEVICE_TRAY_MOVED", "data": {"device": "ide1-cd0", "tray-open": true}}
> -- 
> 1.8.3.1
> 
> 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]