From 8f1bdf0dd01376cf998544a9801a22bc52442bfd Mon Sep 17 00:00:00 2001 From: Parag A Nemade Date: Tue, 14 Mar 2017 09:26:24 +0530 Subject: [PATCH] Enable back tests --- python-cpuinfo.spec | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/python-cpuinfo.spec b/python-cpuinfo.spec index ac71486..1767fff 100644 --- a/python-cpuinfo.spec +++ b/python-cpuinfo.spec @@ -65,9 +65,8 @@ These approaches are used for getting info: %setup -q -n py-%{srcname}-%{version} rm -rf *.egg-info -#sed -i -e '/^#!\//, 1d' cpuinfo/cpuinfo.py +sed -i -e '/^#!\//, 1d' cpuinfo/cpuinfo.py -#find -name '*.py' | xargs sed -i '1s|^#!python|#!%{__python2}|' %build %py2_build @@ -79,10 +78,8 @@ cp -p %{buildroot}/%{_bindir}/cpuinfo %{buildroot}/%{_bindir}/cpuinfo-3 %py2_install %check -# tests are failing hence disable them, reported upstream -# https://github.com/workhorsy/py-cpuinfo/issues/53 -#%{__python2} setup.py test -#%{__python3} setup.py test +%{__python2} setup.py test +%{__python3} setup.py test %files -n python2-%{srcname} %doc README.rst ChangeLog