summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemi Collet <fedora@famillecollet.com>2013-04-06 17:38:25 +0200
committerRemi Collet <fedora@famillecollet.com>2013-04-06 17:38:25 +0200
commitc5f6fc247b0c0351ebaf7e02e762a28bad6af8f5 (patch)
tree3594e15196b30a48646e23461d25229edfa487fe
parent61378919d396c949be85975f7db7b89324eefaba (diff)
php-symfony2-Yaml: fix unit test
-rw-r--r--php-symfony2-Yaml.spec10
1 files changed, 4 insertions, 6 deletions
diff --git a/php-symfony2-Yaml.spec b/php-symfony2-Yaml.spec
index a89e1dd..27f902d 100644
--- a/php-symfony2-Yaml.spec
+++ b/php-symfony2-Yaml.spec
@@ -71,7 +71,6 @@ specification.
# Symfony2 %{pear_name} PEAR package.
set_include_path(
- '%{pear_phpdir}'.PATH_SEPARATOR.
'%{pear_testdir}/%{pear_name}'.PATH_SEPARATOR.
get_include_path()
);
@@ -132,12 +131,11 @@ install -pm 0644 ../phpunit.autoloader.php \
%check
cd %{pear_name}-%{version}/Symfony/Component/%{pear_name}
-sed 's#./phpunit.autoloader.php#./autoloader.php#' -i phpunit.xml.dist
+cp ../../../../phpunit.autoloader.php .
-%{_bindir}/phpunit -d date.timezone="UTC" \
- || : Temporarily ignore failed tests
-# As phpunit requires this package, and because of stupid autoload
-# old / system version is used during test run
+%{_bindir}/phpunit \
+ -d include_path="%{buildroot}%{pear_phpdir}:.:%{pear_phpdir}" \
+ -d date.timezone="UTC"
%post