Change-Id: I945087bacb8e3cf1c4eba88bbb70abdf3e4b633b
Reviewed-on: http://photon-jenkins.eng.vmware.com:8082/3611
Reviewed-by: Chang Lee <changlee@vmware.com>
Tested-by: gerrit-photon <photon-checkins@vmware.com>
| ... | ... |
@@ -1,7 +1,7 @@ |
| 1 | 1 |
Summary: Fast distributed version control system |
| 2 | 2 |
Name: git |
| 3 | 3 |
Version: 2.9.3 |
| 4 |
-Release: 3%{?dist}
|
|
| 4 |
+Release: 4%{?dist}
|
|
| 5 | 5 |
License: GPLv2 |
| 6 | 6 |
URL: http://git-scm.com/ |
| 7 | 7 |
Group: System Environment/Programming |
| ... | ... |
@@ -56,7 +56,10 @@ install -m 0644 contrib/completion/git-completion.bash %{buildroot}/usr/share/ba
|
| 56 | 56 |
%{_fixperms} %{buildroot}/*
|
| 57 | 57 |
|
| 58 | 58 |
%check |
| 59 |
-make %{?_smp_mflags} test
|
|
| 59 |
+# git expect nonroot user to run tests |
|
| 60 |
+chmod g+w . -R |
|
| 61 |
+useradd test -G root -m |
|
| 62 |
+sudo -u test make %{?_smp_mflags} test
|
|
| 60 | 63 |
|
| 61 | 64 |
%post |
| 62 | 65 |
if [ $1 -eq 1 ];then |
| ... | ... |
@@ -89,6 +92,8 @@ rm -rf %{buildroot}/*
|
| 89 | 89 |
%defattr(-,root,root) |
| 90 | 90 |
|
| 91 | 91 |
%changelog |
| 92 |
+* Mon Aug 21 2017 Rui Gu <ruig@vmware.com> 2.9.3-4 |
|
| 93 |
+- Fix make check with non-root mode. |
|
| 92 | 94 |
* Wed May 31 2017 Xiaolin Li <xiaolinl@vmware.com> 2.9.3-3 |
| 93 | 95 |
- Remove python2 from requires. |
| 94 | 96 |
* Tue Apr 17 2017 Robert Qi <qij@vmware.com> 2.9.3-2 |