Browse code

Fix check section in PyPAM

Change-Id: I53d15433b4b052e03cffda8d8e23b67c677de0c7
Reviewed-on: http://photon-jenkins.eng.vmware.com:8082/3036
Tested-by: gerrit-photon <photon-checkins@vmware.com>
Reviewed-by: Divya Thaluru <dthaluru@vmware.com>

DheerajSShetty authored on 2017/06/23 08:49:40
Showing 1 changed files
... ...
@@ -5,7 +5,7 @@
5 5
 Summary:        Python bindings for PAM (Pluggable Authentication Modules).
6 6
 Name:           PyPAM
7 7
 Version:        0.5.0
8
-Release:        2%{?dist}
8
+Release:        3%{?dist}
9 9
 License:        LGPLv2
10 10
 Group:          Development/Languages/Python
11 11
 Vendor:         VMware, Inc.
... ...
@@ -67,9 +67,13 @@ python3 setup.py install --prefix=%{_prefix} --root=%{buildroot}
67 67
 popd
68 68
 
69 69
 %check
70
-python2 setup.py test
70
+PATH=%{buildroot}%{_bindir}:${PATH} \
71
+ PYTHONPATH=%{buildroot}%{python2_sitelib} \
72
+python2 tests/PamTest.py
71 73
 pushd ../p3dir
72
-python3 setup.py test
74
+PATH=%{buildroot}%{_bindir}:${PATH} \
75
+  PYTHONPATH=%{buildroot}%{python3_sitelib} \
76
+python3 tests/PamTest.py
73 77
 popd
74 78
 
75 79
 %files
... ...
@@ -81,6 +85,8 @@ popd
81 81
 %{python3_sitelib}/*
82 82
 
83 83
 %changelog
84
+*   Thu Jun 22 2017 Dheeraj Shetty <dheerajs@vmware.com> 0.5.0-3
85
+-   Fix the check section
84 86
 *   Wed May 31 2017 Dheeraj Shetty <dheerajs@vmware.com> 0.5.0-2
85 87
 -   Changing python_sitelib to python2
86 88
 *   Tue Apr 11 2017 Xiaolin Li <xiaolinl@vmware.com> 0.5.0-1