From e820995c53bda8a469334113f58e3c4f2bde8b6e Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Oct 04 2019 08:48:24 +0000 Subject: skip some tests on 32-b it --- diff --git a/php-scssphp-scssphp.spec b/php-scssphp-scssphp.spec index 5425543..cdc4532 100644 --- a/php-scssphp-scssphp.spec +++ b/php-scssphp-scssphp.spec @@ -129,7 +129,12 @@ ret=0 for cmdarg in "php %{phpunit}" "php71 %{_bindir}/phpunit7" php72 php73 php74; do if which $cmdarg; then set $cmdarg - $1 ${2:-%{_bindir}/phpunit8} --no-coverage --verbose || ret=1 + if [ $(php -r 'echo PHP_INT_SIZE;') -lt 8 ] ; then + # see https://github.com/scssphp/scssphp/issues/51 + $1 ${2:-%{_bindir}/phpunit8} --filter '^((?!(testTests|testEncode)).)*$' --no-coverage --verbose || ret=1 + else + $1 ${2:-%{_bindir}/phpunit8} --no-coverage --verbose || ret=1 + fi fi done exit $ret