Re: [PATCH 4/5] pylibfdt: Change how passing tests are recognized

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



On Mon, Feb 18, 2019 at 05:48:55PM +0100, frenzy@xxxxxxxxx wrote:
> From: Lumir Balhar <lbalhar@xxxxxxxxxx>
> 
> When some warning appears in test result, "ok" is still
> at the end of the line but without three dots.
> 
> Signed-off-by: Lumir Balhar <lbalhar@xxxxxxxxxx>

Applied, thanks.

> ---
>  tests/run_tests.sh | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/tests/run_tests.sh b/tests/run_tests.sh
> index ca3fc86..1fa14ff 100755
> --- a/tests/run_tests.sh
> +++ b/tests/run_tests.sh
> @@ -940,7 +940,7 @@ pylibfdt_tests () {
>      # and the summary line for total tests (e.g. 'Ran 17 tests in 0.002s').
>      # We could add pass + fail to get total tests, but this provides a useful
>      # sanity check.
> -    pass_count=$(grep "\.\.\. ok$" $TMP | wc -l)
> +    pass_count=$(grep "ok$" $TMP | wc -l)
>      fail_count=$(grep "^ERROR: " $TMP | wc -l)
>      total_tests=$(sed -n 's/^Ran \([0-9]*\) tests.*$/\1/p' $TMP)
>      cat $TMP

-- 
David Gibson			| I'll have my music baroque, and my code
david AT gibson.dropbear.id.au	| minimalist, thank you.  NOT _the_ _other_
				| _way_ _around_!
http://www.ozlabs.org/~dgibson

Attachment: signature.asc
Description: PGP signature


[Index of Archives]     [Device Tree]     [Device Tree Spec]     [Linux Driver Backports]     [Video for Linux]     [Linux USB Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]

  Powered by Linux