qemu-block
[Top][All Lists]
Advanced

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

Re: [Qemu-block] [PATCH 03/10] qemu-iotests: be strict with expected out


From: Max Reitz
Subject: Re: [Qemu-block] [PATCH 03/10] qemu-iotests: be strict with expected output
Date: Fri, 1 Dec 2017 21:25:40 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.4.0

On 2017-11-16 18:38, Cleber Rosa wrote:
> The contract between runner (check) and test is one that accepts some
> minor differences in the expcted output, as the comparison method
> employed is a "diff -w".
> 
> This is an exception to a clearer and more straightforward rule of
> just requiring the generated output to be *equal* (and not similar) to
> the recorded expected output.
> 
> Let's drop this exception and make things more predictable.

But this has been a conscious choice, as your very patch shows.
checkpatch yields 48 trailing whitespace errors, which is exactly what
the -w is for.

Also, I can't apply it because the 061.out hunks have been line-wrapped
by the \r for some reason.

Max

> 
> Signed-off-by: Cleber Rosa <address@hidden>
> ---
>  tests/qemu-iotests/026.out | 92 
> +++++++++++++++++++++++-----------------------
>  tests/qemu-iotests/049.out |  4 +-
>  tests/qemu-iotests/061.out |  4 +-
>  tests/qemu-iotests/104.out |  2 +-
>  tests/qemu-iotests/109.out | 44 +++++++++++-----------
>  tests/qemu-iotests/175.out |  2 +-
>  tests/qemu-iotests/check   |  4 +-
>  7 files changed, 76 insertions(+), 76 deletions(-)

Attachment: signature.asc
Description: OpenPGP digital signature


reply via email to

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