diff options
author | Remi Collet <remi@remirepo.net> | 2017-06-23 08:21:52 +0200 |
---|---|---|
committer | Remi Collet <remi@remirepo.net> | 2017-06-23 08:21:52 +0200 |
commit | 47033f0dd1caefc0a0e9f8831d8ddad63d5d5a39 (patch) | |
tree | b5a9ca0c8e0ab75b124180822060d786946dd9bf /php-horde-Horde-Auth.spec | |
parent | 58fc20702ee1a6ea217d3b7cd286bd52145379e4 (diff) |
Diffstat (limited to 'php-horde-Horde-Auth.spec')
-rw-r--r-- | php-horde-Horde-Auth.spec | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/php-horde-Horde-Auth.spec b/php-horde-Horde-Auth.spec index aab1a04..e2d2f3f 100644 --- a/php-horde-Horde-Auth.spec +++ b/php-horde-Horde-Auth.spec @@ -122,7 +122,10 @@ cd %{pear_name}-%{version}/test/$(echo %{pear_name} | sed -e s:_:/:) ret=0 for cmd in php php56 php70 php71 php72; do if which $cmd; then - $cmd %{_bindir}/phpunit --verbose . || ret=1 + if $cmd -r 'exit(function_exists("hex2bin") ? 0 : 1);' + then $cmd %{_bindir}/phpunit --verbose . || ret=1 + else : test ignored + fi fi done exit $ret |