Change-Id: I175c1197544b7806eae8c364374df7de963f2e0e
Reviewed-on: http://photon-jenkins.eng.vmware.com:8082/1595
Tested-by: gerrit-photon <photon-checkins@vmware.com>
Reviewed-by: Danut Moraru <dmoraru@vmware.com>
... | ... |
@@ -20,7 +20,10 @@ perl Makefile.PL --prefix=%{_prefix} |
20 | 20 |
make %{?_smp_mflags} |
21 | 21 |
%install |
22 | 22 |
make DESTDIR=%{buildroot} install |
23 |
-make -k check |& tee %{_specdir}/%{name}-check-log || %{nocheck} |
|
23 |
+ |
|
24 |
+%check |
|
25 |
+make %{?_smp_mflags} -k test |
|
26 |
+ |
|
24 | 27 |
%files |
25 | 28 |
%defattr(-,root,root) |
26 | 29 |
%{_bindir}/xpath |
... | ... |
@@ -28,6 +28,13 @@ SQLAlchemy is the Python SQL toolkit and Object Relational Mapper that gives app |
28 | 28 |
%build |
29 | 29 |
python setup.py build |
30 | 30 |
|
31 |
+%check |
|
32 |
+easy_install apipkg |
|
33 |
+easy_install py |
|
34 |
+easy_install mock |
|
35 |
+export PYTHONPATH=$PYTHONPATH:%{_builddir}/SQLAlchemy-%{version}/.eggs/pytest-3.0.3-py2.7.egg |
|
36 |
+%{__python} setup.py test |
|
37 |
+ |
|
31 | 38 |
%install |
32 | 39 |
python setup.py install --prefix=%{_prefix} --root=%{buildroot} |
33 | 40 |
|
... | ... |
@@ -36,9 +36,6 @@ cp %{SOURCE1} %{buildroot}/usr/lib/systemd/system |
36 | 36 |
cp %{SOURCE2} %{buildroot}%{_sysconfdir}/vault.d/ |
37 | 37 |
install -vdm755 %{buildroot}/var/lib/vault |
38 | 38 |
|
39 |
-%check |
|
40 |
-make -k check |& tee %{_specdir}/%{name}-check-log || %{nocheck} |
|
41 |
- |
|
42 | 39 |
%post -p /sbin/ldconfig |
43 | 40 |
setcap cap_ipc_lock=+ep /usr/bin/%{name} |
44 | 41 |
%systemd_post vault.service |