If RHTS lab manager fails to provide package, it won't be installed on the affected System Under Test (SUT), while the test will be run anyway and thus fail. It would be nice to have a helper function that would check for presence (installed on the SUT) of all required packages against Makefile and fail if this requirement is not satisfied. This way it won't be necessary to duplicate the list of packages required by the test in the test script and Makefile, and later test for presence using provided asserts. Such function would enhance a setup phase and overall sanity checks by providing straight forward check for all required packages. Plus, this feature seems to be easy to implement.
Seems quite useful. I'll consider if I add it to the internal plugin or to original beakerlib...
To me it seems better to be an internal hack only, as this is quite tightly connected to our infrastructure (there's not much said, well actually nothing, about Makefile format in BeakerLib manual): https://fedorahosted.org/beaker/wiki/BeakerLib/Manual Either way, I'd vote for a name resembling rlAssertRpm, perhaps something like: rlAssertRpmAll rlAssertRpmRequired rlAssertRpmAllRequired
(In reply to comment #2) > To me it seems better to be an internal hack only, as this is > quite tightly connected to our infrastructure (there's not much > said, well actually nothing, about Makefile format in BeakerLib > manual): > > https://fedorahosted.org/beaker/wiki/BeakerLib/Manual > > Either way, I'd vote for a name resembling rlAssertRpm, perhaps > something like: > > rlAssertRpmAll > rlAssertRpmRequired > rlAssertRpmAllRequired In case you are not going to support RHTS test format directly, which describes the Makefile, it makes sense to add just to the beaker-lib-redhat for internal use only. Speaking about the naming scheme, I really don't care, name it as you prefer, and document it somewhere, please.
*** This bug has been marked as a duplicate of bug 772622 ***