[packages/python-gevent] move tests run to %build, when it belongs
jajcus
jajcus at pld-linux.org
Fri Feb 21 13:38:57 CET 2014
commit 31e6d75d24d5fd61150b8aa2730bf038e7428cce
Author: Jacek Konieczny <j.konieczny at eggsoft.pl>
Date: Fri Feb 21 13:27:52 2014 +0100
move tests run to %build, when it belongs
python-gevent.spec | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
---
diff --git a/python-gevent.spec b/python-gevent.spec
index c9d88c5..b2302b1 100644
--- a/python-gevent.spec
+++ b/python-gevent.spec
@@ -47,6 +47,12 @@ CC="%{__cc}" \
CFLAGS="%{rpmcflags}" \
%{__python} setup.py build
+%if %{with tests}
+cd greentest
+PYTHONPATH=.. python testrunner.py --expected ../known_failures-merged.txt
+cd ..
+%endif
+
%install
rm -rf $RPM_BUILD_ROOT
%{__python} setup.py install \
@@ -56,12 +62,6 @@ rm -rf $RPM_BUILD_ROOT
%py_postclean
-%if %{with tests}
-cd greentest
-PYTHONPATH=.. python testrunner.py --expected ../known_failures-merged.txt
-cd ..
-%endif
-
%clean
rm -rf $RPM_BUILD_ROOT
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/python-gevent.git/commitdiff/31e6d75d24d5fd61150b8aa2730bf038e7428cce
More information about the pld-cvs-commit
mailing list