!58 【轻量级 PR】:修复测试阶段错误导致rpm构建失败的问题

From: @jinlun123123 
Reviewed-by: @HuaxinLuGitee 
Signed-off-by: @HuaxinLuGitee
This commit is contained in:
openeuler-ci-bot 2023-08-07 01:23:36 +00:00 committed by Gitee
commit 3e417b50da
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -1,6 +1,6 @@
Name: setools Name: setools
Version: 4.4.2 Version: 4.4.2
Release: 1 Release: 2
Summary: Policy Analysis Tools for SELinux Summary: Policy Analysis Tools for SELinux
License: GPLv2 License: GPLv2
URL: https://github.com/SELinuxProject/setools/wiki URL: https://github.com/SELinuxProject/setools/wiki
@ -73,10 +73,11 @@ Gui packages for setools.
%py3_install %py3_install
%check %check
sed -i "s#from setools import InfoFlowAnalysis#from setools.infoflow import InfoFlowAnalysis#" ./tests/conditionalinfoflow.py sed -i "s#from setools import InfoFlowAnalysis#from setools.infoflow import InfoFlowAnalysis#" ./tests/test_conditionalinfoflow.py
sed -i "s#from setools import InfoFlowAnalysis#from setools.infoflow import InfoFlowAnalysis#" ./tests/test_infoflow.py
sed -i "s#from setools import DomainTransitionAnalysis#from setools.dta import DomainTransitionAnalysis#" ./tests/test_dta.py
%{__python3} setup.py test %{__python3} setup.py test
%files %files
%files console %files console
@ -110,6 +111,9 @@ sed -i "s#from setools import InfoFlowAnalysis#from setools.infoflow import Info
%{_mandir}/ru/man1/* %{_mandir}/ru/man1/*
%changelog %changelog
* Fir Aug 04 2023 jinlun <jinlun@huawei.com> - 4.4.2-2
- fix in the test phase error
* Thu Jul 20 2023 jinlun <jinlun@huawei.com> - 4.4.2-1 * Thu Jul 20 2023 jinlun <jinlun@huawei.com> - 4.4.2-1
- update setools to 4.4.2 - update setools to 4.4.2