!5 工程构建不走check,调整spec代码中check位置,解决工程构建报错问题

From: @lin-shoubao 
Reviewed-by: @liantianbaiyun 
Signed-off-by: @liantianbaiyun
This commit is contained in:
openeuler-ci-bot 2024-03-28 01:41:56 +00:00 committed by Gitee
commit 152c722633
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -50,14 +50,6 @@ to be opinion-free and very extendable.
%install
%py3_install
%check
pushd test_elasticsearch
pytest test_serializer.py
pytest test_helpers.py
pytest test_connection_pool.py
pytest test_cases.py
pushd ../
install -d -m755 %{buildroot}/%{_pkgdocdir}
if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi
if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi
@ -84,6 +76,14 @@ popd
mv %{buildroot}/filelist.lst .
mv %{buildroot}/doclist.lst .
%check
pushd test_elasticsearch
pytest test_serializer.py
pytest test_helpers.py
pytest test_connection_pool.py
pytest test_cases.py
pushd ../
%files -n python3-poissonsearch-py -f filelist.lst
%dir %{python3_sitelib}/*
@ -91,6 +91,6 @@ mv %{buildroot}/doclist.lst .
%{_docdir}/*
%changelog
* Wed Mar 27 2024 linshoubao <linshoubao@163.com> - 1.0.0-1
* Thu Mar 28 2024 linshoubao <linshoubao@163.com> - 1.0.0-1
- Package Spec generated and version 1.0.0.