From 1b0d197c2922a1d2486ffdf2591067ebeecb872b Mon Sep 17 00:00:00 2001 From: Shawn Iwinski Date: Tue, 28 Mar 2017 12:17:09 -0400 Subject: [PATCH] Always run test with "php" exec --- php-fedora-autoloader.spec | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/php-fedora-autoloader.spec b/php-fedora-autoloader.spec index b8c9559..4f1b692 100644 --- a/php-fedora-autoloader.spec +++ b/php-fedora-autoloader.spec @@ -123,7 +123,7 @@ find tests -type f -print0 | xargs -0 sed -i 's/extends TestCase/extends \\PHPUn RETURN_CODE=0 for PHP_EXEC in php %{?rhel:php54 php55} php56 php70 php71; do - if which $PHP_EXEC; then + if [ "php" == "$PHP_EXEC" ] || which $PHP_EXEC; then $PHP_EXEC \ -d include_path=.:%{buildroot}%{phpdir}:%{phpdir}:%{_datadir}/pear \ %{_bindir}/phpunit \ @@ -150,10 +150,10 @@ exit $RETURN_CODE %changelog -* Mon Mar 13 2017 Shawn Iwinski - 1.0.0-0.1.rc1 +* Tue Mar 28 2017 Shawn Iwinski - 1.0.0-0.1.rc1 - Update to 1.0.0 - Test with SCLs if available -- add fedora2 template relying on include_path +- Add fedora2 template relying on include_path * Sat Feb 11 2017 Fedora Release Engineering - 0.2.1-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild