qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] [PATCH] qemu-iotests: Fix test 038


From: Kevin Wolf
Subject: Re: [Qemu-devel] [PATCH] qemu-iotests: Fix test 038
Date: Fri, 13 Sep 2013 12:07:56 +0200
User-agent: Mutt/1.5.21 (2010-09-15)

Am 13.09.2013 um 10:37 hat Max Reitz geschrieben:
> Test 038 uses asynchronous I/O, resulting (potentially) in a different
> output for every run (regarding the order of the I/O accesses). This can
> be fixed by simply sorting the I/O access messages, since their order is
> irrelevant anyway (for this asynchonous I/O).
> 
> Signed-off-by: Max Reitz <address@hidden>
> ---
>  tests/qemu-iotests/038     |  3 ++-
>  tests/qemu-iotests/038.out | 10 +++++-----
>  2 files changed, 7 insertions(+), 6 deletions(-)
> 
> diff --git a/tests/qemu-iotests/038 b/tests/qemu-iotests/038
> index 36125ea..90de1a7 100755
> --- a/tests/qemu-iotests/038
> +++ b/tests/qemu-iotests/038
> @@ -95,7 +95,8 @@ function overlay_io()
>  }
>  
>  overlay_io | $QEMU_IO $TEST_IMG | _filter_qemu_io |\
> -     sed -e 's/bytes at offset [0-9]*/bytes at offset XXX/g'
> +    sed -e 's/bytes at offset [0-9]*/bytes at offset XXX/g' \
> +    -e 's/qemu-io> //g' | paste - - | sort | tr '\t' '\n'

Awesome. :-)

Thanks, applied to the block branch.

Kevin



reply via email to

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