From 47033f0dd1caefc0a0e9f8831d8ddad63d5d5a39 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Fri, 23 Jun 2017 08:21:52 +0200 Subject: tweak for EL-6 --- php-horde-Horde-Auth.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 -- cgit