[packages/php/PHP_5_6] tests: create summary even if failed

glen glen at pld-linux.org
Fri May 2 10:35:32 CEST 2014


commit 13ed24d528d03d74b0fafcf2c503ea373318264a
Author: Elan Ruusamäe <glen at delfi.ee>
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



More information about the pld-cvs-commit mailing list