[Rpm-maint] [rpm-software-management/rpm] rpm python tests fails if python2-rpm is not installed (#599)
Tomasz Kłoczko
notifications at github.com
Mon Nov 19 07:28:36 UTC 2018
Looks like rpm python tests fails if python2-rpm is not installed,
Python bindings
```
409: module import FAILED (rpmpython.at:6)
410: macro manipulation FAILED (rpmpython.at:12)
411: basic rpmio FAILED (rpmpython.at:35)
412: spec parse FAILED (rpmpython.at:70)
413: basic header manipulation FAILED (rpmpython.at:85)
414: invalid header data FAILED (rpmpython.at:110)
415: vfyflags API FAILED (rpmpython.at:129)
416: vfylevel API FAILED (rpmpython.at:140)
417: reading a package file FAILED (rpmpython.at:151)
418: reading a signed package file 1 FAILED (rpmpython.at:159)
419: reading a signed package file 2 FAILED (rpmpython.at:174)
420: add package to transaction FAILED (rpmpython.at:192)
421: add bogus package to transaction 1 FAILED (rpmpython.at:204)
422: add bogus package to transaction 2 FAILED (rpmpython.at:218)
423: database iterators FAILED (rpmpython.at:253)
424: dependency sets 1 FAILED (rpmpython.at:338)
425: dependency sets 2 FAILED (rpmpython.at:355)
426: file info sets 1 FAILED (rpmpython.at:365)
427: string pool 1 FAILED (rpmpython.at:382)
428: string pool 2 FAILED (rpmpython.at:397)
429: archive 1 FAILED (rpmpython.at:415)
430: header unload FAILED (rpmpython.at:435)
```
When this package is installed everything is fine:
```
Python bindings
409: module import ok
410: macro manipulation ok
411: basic rpmio ok
412: spec parse ok
413: basic header manipulation ok
414: invalid header data ok
415: vfyflags API ok
416: vfylevel API ok
417: reading a package file ok
418: reading a signed package file 1 ok
419: reading a signed package file 2 ok
420: add package to transaction ok
421: add bogus package to transaction 1 ok
422: add bogus package to transaction 2 ok
423: database iterators ok
424: dependency sets 1 ok
425: dependency sets 2 ok
426: file info sets 1 ok
427: string pool 1 ok
428: string pool 2 ok
429: archive 1 ok
430: header unload ok
```
Effectively it means that rpm test suite does not test just build rpm python module but that one which is installed.
I've been trying to modify my %check section to point to installed in %install files
```
%check
PYTHONPATH=%{buildroot}%{python2_sitearch} \
%__make check
```
but it doesn't help.
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/issues/599
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20181118/ce80c37e/attachment.html>
More information about the Rpm-maint
mailing list