summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemi Collet <fedora@famillecollet.com>2016-02-21 09:11:28 +0100
committerRemi Collet <fedora@famillecollet.com>2016-02-21 09:11:28 +0100
commit61748eea9ef2bd7bf5285f0312308f3510f81fdd (patch)
tree2a1c2abb943dccf7a2a03b71194e64ea889e2b17
parente69f56554b7f7c93eb1d0e5950051752c0cb60ac (diff)
php-nette-forms: session path for old PHP version
-rw-r--r--php-nette-forms.spec4
1 files changed, 3 insertions, 1 deletions
diff --git a/php-nette-forms.spec b/php-nette-forms.spec
index c027728..25a50d8 100644
--- a/php-nette-forms.spec
+++ b/php-nette-forms.spec
@@ -110,7 +110,8 @@ rm -rf %{buildroot}%{php_home}/%{ns_vendor}/assets
%check
%if %{with_tests}
: Generate configuration
-cat /etc/php.ini /etc/php.d/*ini >php.ini
+cat /etc/php.ini /etc/php.d/*ini >php.ini
+echo 'session.save_path = "/tmp"' >>php.ini
export LANG=fr_FR.utf8
: Generate autoloader
@@ -129,6 +130,7 @@ EOF
if which php70; then
cat /etc/opt/remi/php70/php.ini /etc/opt/remi/php70/php.d/*ini >php.ini
+ echo 'session.save_path = "/tmp"' >>php.ini
php70 %{_bindir}/nette-tester --colors 0 -p php70 -c ./php.ini tests -s
fi
%else