!42 [sync] PR-41: enable check only in obs build

From: @openeuler-sync-bot 
Reviewed-by: @gaoruoshu 
Signed-off-by: @gaoruoshu
This commit is contained in:
openeuler-ci-bot 2023-06-20 02:51:18 +00:00 committed by Gitee
commit 6771f630a6
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -5,7 +5,7 @@
Name: mcelog
Version: 179
Release: 4
Release: 5
Epoch: 3
Summary: Linux kernel machine check handling middleware
License: GPLv2
@ -58,8 +58,10 @@ destdir=$RPM_BUILD_ROOT make -C mce-inject-%{mce_inject_ver} install
install -p -m755 aer-inject-%{aer_inject_ver}/aer-inject $RPM_BUILD_ROOT/%{_sbindir}/aer-inject
%check
%if "%{_gpg_name}" == "private OBS"
export PATH="$PATH:$RPM_BUILD_ROOT%{_sbindir}"
make test
%endif
%clean
rm -rf $RPM_BUILD_ROOT
@ -86,6 +88,9 @@ rm -rf $RPM_BUILD_ROOT
%attr(0644,root,root) %{_mandir}/*/*
%changelog
* Tue Jun 20 2023 zhangnan <zhangnan134@huawei.com> - 3:179-5
- enable check only during obs build
* Fri Jun 16 2023 zhangruifang2020 <zhangruifang1@h-partners.com> - 3:179-4
- backport patches from upstream