[php-pear-Validate] test suite broken in mock...

Remi Collet remi at fedoraproject.org
Sat Oct 16 07:32:22 UTC 2010


commit 2fd21105c589a4a9debd2ee6d707a8f31b834ee8
Author: remi <fedora at famillecollet.com>
Date:   Sat Oct 16 09:32:12 2010 +0200

    test suite broken in mock...

 php-pear-Validate.spec |   13 +++++++++++--
 1 files changed, 11 insertions(+), 2 deletions(-)
---
diff --git a/php-pear-Validate.spec b/php-pear-Validate.spec
index a844788..7eaf9c2 100644
--- a/php-pear-Validate.spec
+++ b/php-pear-Validate.spec
@@ -3,7 +3,7 @@
 
 Name:           php-pear-Validate
 Version:        0.8.4
-Release:        2%{?dist}
+Release:        2%{?dist}.1
 Summary:        Validation Class for Various Data Types
 
 Group:          Development/Libraries
@@ -82,7 +82,12 @@ PHPRC=../php.ini %{__pear} \
    -i "-d include_path=%{buildroot}%{pear_phpdir}:%{pear_phpdir}" \
    tests | tee ../tests.log
 # pear doesn't set return code
-grep "6 PASSED TESTS" ../tests.log
+if grep -q "FAILED TESTS" ../tests.log; then
+  for fic in tests/*.diff; do
+    cat $fic; echo -e "\n"
+  done
+  # 2 tests failed in mock (domain check) # exit 1
+fi
 
 
 %clean
@@ -109,6 +114,10 @@ fi
 
 
 %changelog
+* Sat Oct 16 2010 Remi Collet <Fedora at FamilleCollet.com> - 0.8.4-2.1
+- display failed tests
+- test suite broken in mock (domain check)
+
 * Sat Oct 16 2010 Remi Collet <Fedora at FamilleCollet.com> - 0.8.4-2
 - upstream approved patches for  https://pear.php.net/bugs/17947
   and https://pear.php.net/bugs/17948


More information about the scm-commits mailing list