!58 【轻量级 PR】:修复测试阶段错误导致rpm构建失败的问题
From: @jinlun123123 Reviewed-by: @HuaxinLuGitee Signed-off-by: @HuaxinLuGitee
This commit is contained in:
commit
3e417b50da
10
setools.spec
10
setools.spec
@ -1,6 +1,6 @@
|
||||
Name: setools
|
||||
Version: 4.4.2
|
||||
Release: 1
|
||||
Release: 2
|
||||
Summary: Policy Analysis Tools for SELinux
|
||||
License: GPLv2
|
||||
URL: https://github.com/SELinuxProject/setools/wiki
|
||||
@ -73,10 +73,11 @@ Gui packages for setools.
|
||||
%py3_install
|
||||
|
||||
%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
|
||||
|
||||
|
||||
%files
|
||||
|
||||
%files console
|
||||
@ -110,6 +111,9 @@ sed -i "s#from setools import InfoFlowAnalysis#from setools.infoflow import Info
|
||||
%{_mandir}/ru/man1/*
|
||||
|
||||
%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
|
||||
- update setools to 4.4.2
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user