NetworkManager: set NMTST_FORCE_REAL_ROOT to true to skip some tests
OBS build cannot provide REAL_ROOT permission for unit test. So we set NMTST_FORCE_REAL_ROOT to ture to skip this kind of test. This change delivered in Suse Euler 21.09 branch. Change-Id: I873261ca06f4295addc0a514516471510e1c46a6 Signed-off-by: Chenxi Mao <chenxi.mao@suse.com>
This commit is contained in:
parent
bd2d4293cd
commit
9517bc86c4
@ -50,7 +50,7 @@
|
||||
Name: NetworkManager
|
||||
Version: 1.32.12
|
||||
Epoch: 1
|
||||
Release: 14
|
||||
Release: 15
|
||||
Summary: Network Link Manager and User Applications
|
||||
License: GPLv2+
|
||||
URL: https://www.gnome.org/projects/NetworkManager/
|
||||
@ -333,7 +333,8 @@ cp valgrind.suppressions %{buildroot}%{_prefix}/src/debug/NetworkManager-%{real_
|
||||
touch %{buildroot}%{_sbindir}/ifup %{buildroot}%{_sbindir}/ifdown
|
||||
|
||||
%check
|
||||
make %{?_smp_mflags} check
|
||||
#To avoid some test failed which need root permission
|
||||
NMTST_FORCE_REAL_ROOT=true %make_build check
|
||||
|
||||
%pre
|
||||
if [ -f "%{systemd_dir}/network-online.target.wants/NetworkManager-wait-online.service" ] ; then
|
||||
@ -487,6 +488,12 @@ fi
|
||||
%{_datadir}/gtk-doc/html/NetworkManager/*
|
||||
|
||||
%changelog
|
||||
* Tue Dec 6 2022 Chenxi Mao <chenxi.mao@suse.com> - 1:1.32.12-15
|
||||
- Type:bugfix
|
||||
- CVE:NA
|
||||
- SUG:NA
|
||||
- DESC: Set NMTST_FORCE_REAL_ROOT to true to skip test which need root user permission
|
||||
|
||||
* Fri Dec 2 2022 gaoxingwang <gaoxingwang1@huawei.com> - 1:1.32.12-14
|
||||
- Type:feature
|
||||
- CVE:NA
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user