Succeed if make check does not report any errors
commit99db95db37b4fd95986fadb263e4180b7381d10d
authorSiddhesh Poyarekar <siddhesh@redhat.com>
Tue, 19 May 2015 01:06:29 +0000 (19 06:36 +0530)
committerSiddhesh Poyarekar <siddhesh@redhat.com>
Tue, 19 May 2015 01:06:29 +0000 (19 06:36 +0530)
treec317841c54f247ba36cd46dc42acc6e441652f33
parent920d70128baa41ce6ce3b1b4771fe912f8d1691a
Succeed if make check does not report any errors

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.
ChangeLog
Makefile