[packages/python-ldap] add test (from reviewboard) that fails with file not found error
glen
glen at pld-linux.org
Wed Jan 30 11:11:20 CET 2013
commit 04ae41e87d56f4c7dd7103adbb0b4a25c93661fc
Author: Elan Ruusamäe <glen at delfi.ee>
Date: Wed Jan 30 12:02:19 2013 +0200
add test (from reviewboard) that fails with file not found error
details: http://sprunge.us/GFeD
python-ldap.spec | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
---
diff --git a/python-ldap.spec b/python-ldap.spec
index eacd37f..4c818e6 100644
--- a/python-ldap.spec
+++ b/python-ldap.spec
@@ -43,7 +43,12 @@ CC="%{__cc}" \
CFLAGS="%{rpmcflags}" \
%{__python} setup.py build
-%{?with_tests:%{__python} setup.py test}
+%if %{with tests}
+%{__python} setup.py test
+
+PYTHONPATH=$(echo build/lib.linux-*/) \
+%{__python} -c "import ldap; print ldap.__version__; ldapo = ldap.initialize('localhost')"
+%endif
%install
rm -rf $RPM_BUILD_ROOT
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/python-ldap.git/commitdiff/bc02c3915c556f6cee5f049f6d2d767bb74f20cd
More information about the pld-cvs-commit
mailing list