summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemi Collet <remi@remirepo.net>2017-06-23 08:21:52 +0200
committerRemi Collet <remi@remirepo.net>2017-06-23 08:21:52 +0200
commit47033f0dd1caefc0a0e9f8831d8ddad63d5d5a39 (patch)
treeb5a9ca0c8e0ab75b124180822060d786946dd9bf
parent58fc20702ee1a6ea217d3b7cd286bd52145379e4 (diff)
tweak for EL-6HEADmaster
-rw-r--r--php-horde-Horde-Auth.spec5
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