Browse code

Fix make check issues of sbuversion. (1633796)

Change-Id: I34bc9765bb0b0318b1a3c3cf31d9478b8c8d905c
Reviewed-on: http://photon-jenkins.eng.vmware.com:8082/2974
Reviewed-by: Chang Lee <changlee@vmware.com>
Tested-by: gerrit-photon <photon-checkins@vmware.com>

xiaolin-vmware authored on 2017/06/16 07:15:36
Showing 1 changed files
... ...
@@ -1,7 +1,7 @@
1 1
 Summary:        The Apache Subversion control system
2 2
 Name:           subversion
3 3
 Version:        1.9.5
4
-Release:        1%{?dist}
4
+Release:        2%{?dist}
5 5
 License:        Apache License 2.0
6 6
 URL:            http://subversion.apache.org/
7 7
 Group:          Utilities/System
... ...
@@ -42,7 +42,10 @@ make -j1 DESTDIR=%{buildroot} install
42 42
 %find_lang %{name}
43 43
 
44 44
 %check
45
-make  %{?_smp_mflags} check
45
+# subversion expect nonroot user to run tests
46
+chmod g+w . -R
47
+useradd test -G root -m
48
+sudo -u test make check && userdel test -r -f
46 49
 
47 50
 %files -f %{name}.lang
48 51
 %defattr(-,root,root)
... ...
@@ -59,6 +62,8 @@ make  %{?_smp_mflags} check
59 59
 %exclude %{_libdir}/debug/
60 60
 
61 61
 %changelog
62
+*   Thu Jun 15 2017 Xiaolin Li <xiaolinl@vmware.com> 1.9.5-2
63
+-   Fix make check issues.
62 64
 *   Wed Apr 12 2017 Vinay Kulkarni <kulkarniv@vmware.com> 1.9.5-1
63 65
 -   Update to version 1.9.5
64 66
 *   Tue Dec 27 2016 Xiaolin Li <xiaolinl@vmware.com> 1.9.4-2