[projects/template-specs] pecl: use exec in script to propagate make failure

glen glen at pld-linux.org
Tue Nov 22 20:29:51 CET 2016


commit 67c043774a2a7e57337440b91528eae61f7a30ee
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Tue Nov 22 21:29:08 2016 +0200

    pecl: use exec in script to propagate make failure
    
    so no need for redirect and grep hacks

 php-pecl.spec | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)
---
diff --git a/php-pecl.spec b/php-pecl.spec
index 9cc894e..0e6a2c4 100644
--- a/php-pecl.spec
+++ b/php-pecl.spec
@@ -56,15 +56,14 @@ export NO_INTERACTION=1 REPORT_EXIT_STATUS=1 MALLOC_CHECK_=2
 cat <<'EOF' > run-tests.sh
 #!/bin/sh
 export NO_INTERACTION=1 REPORT_EXIT_STATUS=1 MALLOC_CHECK_=2
-%{__make} test \
+exec %{__make} test \
 	PHP_EXECUTABLE=%{__php} \
 	PHP_TEST_SHARED_SYSTEM_EXTENSIONS="spl pdo session" \
 	RUN_TESTS_SETTINGS="-q $*"
 EOF
-
 chmod +x run-tests.sh
-./run-tests.sh -w failed.log
-test -f failed.log -a ! -s failed.log
+
+./run-tests.sh
 %endif
 
 %install
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/projects/template-specs.git/commitdiff/67c043774a2a7e57337440b91528eae61f7a30ee



More information about the pld-cvs-commit mailing list