]> git.pld-linux.org Git - projects/template-specs.git/commitdiff
pecl: use exec in script to propagate make failure
authorElan Ruusamäe <glen@delfi.ee>
Tue, 22 Nov 2016 19:29:08 +0000 (21:29 +0200)
committerElan Ruusamäe <glen@delfi.ee>
Tue, 22 Nov 2016 19:29:10 +0000 (21:29 +0200)
so no need for redirect and grep hacks

php-pecl.spec

index 9cc894ebf273446da239ec56f0796aa70c060c37..0e6a2c44b10ae7cf91ddd8b4a44cc60f4e18fbdc 100644 (file)
@@ -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
This page took 0.149818 seconds and 4 git commands to generate.