Bug 772178
Summary: | [rfe] report NVRs of tested packages | ||||||
---|---|---|---|---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Martin Cermak <mcermak> | ||||
Component: | beakerlib | Assignee: | Petr Muller <pmuller> | ||||
Status: | CLOSED CURRENTRELEASE | QA Contact: | |||||
Severity: | high | Docs Contact: | |||||
Priority: | unspecified | ||||||
Version: | rawhide | CC: | azelinka, ohudlick, pmuller, psplicha, qa-errata-list | ||||
Target Milestone: | --- | Keywords: | Patch | ||||
Target Release: | --- | ||||||
Hardware: | All | ||||||
OS: | Linux | ||||||
Whiteboard: | |||||||
Fixed In Version: | Doc Type: | Bug Fix | |||||
Doc Text: | Story Points: | --- | |||||
Clone Of: | |||||||
: | 893064 (view as bug list) | Environment: | |||||
Last Closed: | 2013-06-27 16:39:00 UTC | Type: | --- | ||||
Regression: | --- | Mount Type: | --- | ||||
Documentation: | --- | CRM: | |||||
Verified Versions: | Category: | --- | |||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
Cloudforms Team: | --- | Target Upstream Version: | |||||
Embargoed: | |||||||
Bug Depends On: | |||||||
Bug Blocks: | 798718, 772180, 772622, 893064 | ||||||
Attachments: |
|
Description
Martin Cermak
2012-01-06 10:26:34 UTC
Note that I created a rlAssertRpm modification request: bz772180. Yes, I already have infrastructure support for this in the (yet unfinished) journal rewrite. Coming to your Beaker box in early 2012. (In reply to comment #0) > Let's have some special variable PKGNVR dedicated for this purpose. > > Example: Imagine we pass a parameter like this to the test: > PKGNVR=nc;bind-utils After the test finishes, we'll get > nc-1.84-22.el6.x86_64, bind-utils-9.7.3-8.P3.el6.x86_64 along with > test results in the resulting XML. What about reporting NVRs of all packages mentioned in Requires? A separate bugzilla for this is already filed: 772622. Petr, do you have any estimation when this could be complete? Can I help you with the implementation? I hope I will have the new journal in production until the end of FY. Created attachment 575756 [details]
proposed patch
This patch reuses XML element "pkgdetails" which is already present in the journal. It adds package details for comma separated list of packages passed to the test via PKGNVR environmental variable:
Examples:
export PKGNVR=kernel,selinux-policy
make run
export PKGNVR=kernel,somenonsense
make run
unset PKGNVR
make run
...
Note that this also works when multiple packages with identical names (e.g. kernel) are installed.
I hope that this would work in beaker like this: bkr workflow-tcms --task=/test/name --taskparam=PKGNVR='kernel,selinux-policy' ...
I've put in a slightly pythonized patch without the ugly try: (...) except: pass construction. http://git.fedorahosted.org/git?p=beakerlib.git;a=commit;h=7782b2db85f1fc9662817cfd077d4392d4c56177 Yeah, that's a bit better :) Thanks! beakerlib-1.6-1 is already in fedora |