[PING][PATCH] Succeed if make check does not report any errors
Siddhesh Poyarekar
siddhesh@redhat.com
Mon May 18 09:58:00 GMT 2015
Ping!
On Wed, May 13, 2015 at 12:09:31PM +0530, Siddhesh Poyarekar wrote:
> The conditional that evaluates if there are any FAILed test cases
> currently always fails, since we ensure it fails if we find any
> unexpected results in tests.sum and it would obviously fail if it does
> not find failed results in tests.sum. This patch fixes this by simply
> inverting the result of the egrep, i.e. succeed if egrep fails (to
> find failed results) and fail if it succeeds.
>
> Tested with 'make subdirs=localedata check' and 'make subdirs=locale
> check' where all tests succeed and with 'make subdirs=elf check' where
> a couple of tests fail for me.
>
> * Makefile (summarize-tests): Fix return value on success.
> ---
> Makefile | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/Makefile b/Makefile
> index 7edf517..658ccfa 100644
> --- a/Makefile
> +++ b/Makefile
> @@ -320,7 +320,7 @@ define summarize-tests
> @egrep -v '^(PASS|XFAIL):' $(objpfx)$1 || true
> @echo "Summary of test results$2:"
> @sed 's/:.*//' < $(objpfx)$1 | sort | uniq -c
> -@egrep -q -v '^(X?PASS|XFAIL|UNSUPPORTED):' $(objpfx)$1 && false
> +@! egrep -q -v '^(X?PASS|XFAIL|UNSUPPORTED):' $(objpfx)$1
> endef
>
> tests-special-notdir = $(patsubst $(objpfx)%, %, $(tests-special))
> --
> 2.1.0
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 473 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/libc-alpha/attachments/20150518/3c81bb51/attachment.sig>
More information about the Libc-alpha
mailing list