From 5b5d8da03eb61159b6c7826821d0cbe1b2838482 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Mon, 26 Oct 2020 15:44:11 +0100 Subject: [PATCH] fix arch detection (cherry picked from commit 19d9d50b1232b6f7bf75815d3677c229c412f579) --- php-phpunit-php-timer5.spec | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/php-phpunit-php-timer5.spec b/php-phpunit-php-timer5.spec index 35db59a..93c756f 100644 --- a/php-phpunit-php-timer5.spec +++ b/php-phpunit-php-timer5.spec @@ -81,13 +81,14 @@ touch vendor/autoload.php : Run upstream test suite ret=0 +if [ $(php -r 'echo PHP_INT_SIZE;') -lt 8 ]; then + filter="--filter '^((?!(testCanBeFormattedAsString)).)*$'" +fi for cmd in php php73 php74 php80; do if which $cmd; then $cmd -d auto_prepend_file=%{buildroot}%{php_home}/%{ns_vendor}/%{ns_project}%{major}/autoload.php \ %{_bindir}/phpunit9 \ -%if %{__isa_bits} < 64 - --filter '^((?!(testCanBeFormattedAsString)).)*$' \ -%endif + $filter \ --verbose || ret=1 fi done