From 7bfd0f6638fa33a3a4b8f24b4d6af803873f1c6b Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Tue, 12 Dec 2017 13:55:35 +0100 Subject: fix check --- php-zendframework-zend-view.spec | 5 +++-- 1 file 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 -- cgit