Enable back tests
This commit is contained in:
parent
ae89f2fac9
commit
8f1bdf0dd0
@ -65,9 +65,8 @@ These approaches are used for getting info:
|
|||||||
%setup -q -n py-%{srcname}-%{version}
|
%setup -q -n py-%{srcname}-%{version}
|
||||||
rm -rf *.egg-info
|
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
|
%build
|
||||||
%py2_build
|
%py2_build
|
||||||
@ -79,10 +78,8 @@ cp -p %{buildroot}/%{_bindir}/cpuinfo %{buildroot}/%{_bindir}/cpuinfo-3
|
|||||||
%py2_install
|
%py2_install
|
||||||
|
|
||||||
%check
|
%check
|
||||||
# tests are failing hence disable them, reported upstream
|
%{__python2} setup.py test
|
||||||
# https://github.com/workhorsy/py-cpuinfo/issues/53
|
%{__python3} setup.py test
|
||||||
#%{__python2} setup.py test
|
|
||||||
#%{__python3} setup.py test
|
|
||||||
|
|
||||||
%files -n python2-%{srcname}
|
%files -n python2-%{srcname}
|
||||||
%doc README.rst ChangeLog
|
%doc README.rst ChangeLog
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user