[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-block] [Qemu-devel] [PATCH for-2.10] iotests: fix 185
From: |
Eric Blake |
Subject: |
Re: [Qemu-block] [Qemu-devel] [PATCH for-2.10] iotests: fix 185 |
Date: |
Mon, 7 Aug 2017 09:29:45 -0500 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.2.1 |
On 08/07/2017 09:16 AM, Vladimir Sementsov-Ogievskiy wrote:
> 185 iotest is broken.
>
> How to test:
>> i=0; while ./check -qcow2 -nocache 185; do ((i+=1)); echo N = $i; \
> done; echo N = $i
>
> finished for me like this:
>
> 185 2s ... - output mismatch (see 185.out.bad)
> --- /work/src/qemu/master/tests/qemu-iotests/185.out 2017-07-14 \
> 15:14:29.520343805 +0300
> +++ 185.out.bad 2017-08-07 16:51:02.231922900 +0300
> @@ -37,7 +37,7 @@
> {"return": {}}
> {"return": {}}
> {"timestamp": {"seconds": TIMESTAMP, "microseconds": TIMESTAMP}, \
> "event": "SHUTDOWN", "data": {"guest": false}}
> -{"timestamp": {"seconds": TIMESTAMP, "microseconds": TIMESTAMP}, \
> "event": "BLOCK_JOB_CANCELLED", "data": {"device": "disk", \
> "len": 4194304, "offset": 4194304, "speed": 65536, "type": \
> "mirror"}}
> +{"timestamp": {"seconds": TIMESTAMP, "microseconds": TIMESTAMP}, \
> "event": "BLOCK_JOB_CANCELLED", "data": {"device": "disk", \
> "len": 0, "offset": 0, "speed": 65536, "type": "mirror"}}
This diff says both 'len' and 'offset' differ...
>
> === Start backup job and exit qemu ===
>
> Failures: 185
> Failed 1 of 1 tests
> N = 8
>
> It doesn't seems logical to expect the constant offset on cancel,
> so let filter it out.
s/let/let's/
>
> Signed-off-by: Vladimir Sementsov-Ogievskiy <address@hidden>
> ---
> tests/qemu-iotests/185 | 2 +-
> tests/qemu-iotests/185.out | 2 +-
> 2 files changed, 2 insertions(+), 2 deletions(-)
> -{"timestamp": {"seconds": TIMESTAMP, "microseconds": TIMESTAMP}, "event":
> "BLOCK_JOB_CANCELLED", "data": {"device": "disk", "len": 4194304, "offset":
> 4194304, "speed": 65536, "type": "mirror"}}
> +{"timestamp": {"seconds": TIMESTAMP, "microseconds": TIMESTAMP}, "event":
> "BLOCK_JOB_CANCELLED", "data": {"device": "disk", "len": 4194304, "offset":
> OFFSET, "speed": 65536, "type": "mirror"}}
...while this diff only touched 'offset'. Did you copy-and-paste
incorrectly in the commit message? If so, then with the commit message
fixed, I'm okay with:
Reviewed-by: Eric Blake <address@hidden>
--
Eric Blake, Principal Software Engineer
Red Hat, Inc. +1-919-301-3266
Virtualization: qemu.org | libvirt.org
signature.asc
Description: OpenPGP digital signature
- [Qemu-block] [PATCH] iotests: fix 185, Vladimir Sementsov-Ogievskiy, 2017/08/07
- Re: [Qemu-block] [Qemu-devel] [PATCH for-2.10] iotests: fix 185,
Eric Blake <=
- Re: [Qemu-block] [PATCH] iotests: fix 185, Kevin Wolf, 2017/08/07
- Re: [Qemu-block] [PATCH] iotests: fix 185, Vladimir Sementsov-Ogievskiy, 2017/08/08
- Re: [Qemu-block] [PATCH] iotests: fix 185, Kevin Wolf, 2017/08/08
- Re: [Qemu-block] [PATCH] iotests: fix 185, Vladimir Sementsov-Ogievskiy, 2017/08/08
- Re: [Qemu-block] [PATCH] iotests: fix 185, Vladimir Sementsov-Ogievskiy, 2017/08/08
- Re: [Qemu-block] [PATCH] iotests: fix 185, Vladimir Sementsov-Ogievskiy, 2017/08/08
- Re: [Qemu-block] [Qemu-devel] [PATCH] iotests: fix 185, Eric Blake, 2017/08/08