summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemi Collet <remi@remirepo.net>2023-09-19 08:15:37 +0200
committerRemi Collet <remi@php.net>2023-09-19 08:15:37 +0200
commit6a91633e760aba49f8ef28099848d942ca1db19d (patch)
treeeba0ece7a2791ad58cec054c17f781e3a8606ba0
parenta3c1ecaddd1f813e469059bca45a173185af3d6a (diff)
fix test cleanup
-rw-r--r--php-snuffleupagus.spec10
1 files changed, 5 insertions, 5 deletions
diff --git a/php-snuffleupagus.spec b/php-snuffleupagus.spec
index cd9a69e..956ce12 100644
--- a/php-snuffleupagus.spec
+++ b/php-snuffleupagus.spec
@@ -166,12 +166,12 @@ else
rm src/tests/upload_validation/upload_validation_real.phpt
fi
-cd %{sources}
-
-%if "%{php_version}" < "8"
-rm -rf src/tests/*php8*/
-%endif
+VER=$(%{__php} -r 'echo PHP_VERSION_ID;')
+if [ $VER -lt 80000 ]; then
+ rm -rf src/tests/*php8*/
+fi
+cd %{sources}
export SP_SKIP_OLD_PHP_CHECK=1
# add extensions used by test suite