Change-Id: I3f66bc2a008269275da77ec79f0263563cf1f585
Reviewed-on: http://photon-jenkins.eng.vmware.com:8082/6269
Tested-by: gerrit-photon <photon-checkins@vmware.com>
Reviewed-by: Sharath George
... | ... |
@@ -3,7 +3,7 @@ |
3 | 3 |
|
4 | 4 |
Name: python-ConcurrentLogHandler |
5 | 5 |
Version: 0.9.1 |
6 |
-Release: 2%{?dist} |
|
6 |
+Release: 3%{?dist} |
|
7 | 7 |
Summary: Concurrent logging handler (drop-in replacement for RotatingFileHandler) Python 2.6+ |
8 | 8 |
License: Apache-2.0 |
9 | 9 |
Group: Development/Languages/Python |
... | ... |
@@ -58,7 +58,15 @@ python3 setup.py install --prefix=%{_prefix} --root=%{buildroot} |
58 | 58 |
popd |
59 | 59 |
python2 setup.py install --prefix=%{_prefix} --root=%{buildroot} |
60 | 60 |
|
61 |
-#No test case available for this package |
|
61 |
+%check |
|
62 |
+PATH=%{buildroot}%{_bindir}:${PATH} \ |
|
63 |
+PYTHONPATH=%{buildroot}%{python_sitelib} \ |
|
64 |
+python2 stresstest.py |
|
65 |
+pushd ../p3dir |
|
66 |
+PATH=%{buildroot}%{_bindir}:${PATH} \ |
|
67 |
+PYTHONPATH=%{buildroot}%{python3_sitelib} \ |
|
68 |
+python3 stresstest.py |
|
69 |
+popd |
|
62 | 70 |
|
63 | 71 |
%files |
64 | 72 |
%defattr(-,root,root,-) |
... | ... |
@@ -73,6 +81,8 @@ python2 setup.py install --prefix=%{_prefix} --root=%{buildroot} |
73 | 73 |
%exclude /usr/tests/stresstest.py |
74 | 74 |
|
75 | 75 |
%changelog |
76 |
+* Mon Dec 03 2018 Ashwin H <ashwinh@vmware.com> 0.9.1-3 |
|
77 |
+- Add %check |
|
76 | 78 |
* Thu Sep 21 2017 Bo Gan <ganb@vmware.com> 0.9.1-2 |
77 | 79 |
- Disable test as no tests are available |
78 | 80 |
* Fri Aug 25 2017 Vinay Kulkarni <kulkarniv@vmware.com> 0.9.1-1 |