diff options
author | Remi Collet <remi@remirepo.net> | 2017-12-12 13:55:35 +0100 |
---|---|---|
committer | Remi Collet <remi@remirepo.net> | 2017-12-12 13:55:35 +0100 |
commit | 7bfd0f6638fa33a3a4b8f24b4d6af803873f1c6b (patch) | |
tree | 7fd4631754bc717379276aec8bdb069d9e737801 | |
parent | 6f4c180d26a8e44fd272f310897b66c5adbcab35 (diff) |
fix check
-rw-r--r-- | php-zendframework-zend-view.spec | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/php-zendframework-zend-view.spec b/php-zendframework-zend-view.spec index fb61cac..a231f84 100644 --- a/php-zendframework-zend-view.spec +++ b/php-zendframework-zend-view.spec @@ -215,9 +215,10 @@ require_once '%{php_home}/Zend/autoload.php'; EOF ret=0 -for cmd in php php56 php70 php71 php72; do +for cmd in "php %{phpunit}" "php56 %{_bindir}/phpunit" php70 php71 php72; do if which $cmd; then - $cmd %{_bindir}/phpunit || ret=1 + set $cmd + $1 ${2:-%{_bindir}/phpunit6} --verbose || ret=1 fi done exit $ret |