fix arch detection

This commit is contained in:
Remi Collet 2020-10-26 15:44:11 +01:00
commit 19d9d50b12

View file

@ -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