commit 13ed24d528d03d74b0fafcf2c503ea373318264a
Author: Elan Ruusamäe <[email protected]>
Date: Fri May 2 11:35:25 2014 +0300
tests: create summary even if failed
php.spec | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
---
diff --git a/php.spec b/php.spec
index 88edad8..6800066 100644
--- a/php.spec
+++ b/php.spec
@@ -2440,7 +2440,8 @@ chmod +x run-tests.sh
cp -pf php_config.h.cli main/php_config.h
cp -pf Makefile.cli Makefile
-./run-tests.sh -w failed.log -s tests.log
+./run-tests.sh -w failed.log -s tests.log || {
+rc=$?
# collect failed tests into cleanup script used in prep.
sed -ne '/^FAILED TEST SUMMARY/,/^===/p' tests.log | sed -e
'1,/^---/d;/^===/,$d' > tests-failed.log
@@ -2451,6 +2452,8 @@ sed -ne '/^via/d;/\[.*\]/{s/\t*\(.*\) \[\(.*\)\]\(.*\)/#
\1\3\nmv \2{,.skip}/p}'
tty -q || cat tests.log
test ! -s failed.log
+exit $rc
+}
%endif
%install
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/php.git/commitdiff/13ed24d528d03d74b0fafcf2c503ea373318264a
_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit