Bug 488145
Summary: | FEAT: HTS should provide a run-time dependency option for installation | ||
---|---|---|---|
Product: | [Retired] Red Hat Hardware Certification Program | Reporter: | Greg Nichols <gnichols> |
Component: | Test Suite (harness) | Assignee: | Greg Nichols <gnichols> |
Status: | CLOSED ERRATA | QA Contact: | Lawrence Lim <llim> |
Severity: | medium | Docs Contact: | |
Priority: | low | ||
Version: | 5.3 | CC: | averma, rlandry, tools-bugs, yoyzhang |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2010-04-21 15:57:46 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: | |||
Attachments: |
Description
Greg Nichols
2009-03-02 21:14:32 UTC
Created attachment 382964 [details]
hardwaretest.py patch adding test-specified package installation
This patch adds test-specified package installation to the planning phase of the harness. When a new test plan is created, the list of tests are checked for additional required packages. If any are found that are not installed, the harness asks the user if they would like to isntall them.
If the user agrees, the hardness calls yum with the package list, then re-checks the required packages. If the user does not agree, the harness prints a warning message.
Test-required packages are only checked when a new plan is created, not when the plan is changed via hardware detection, or user edits.
Created attachment 382965 [details]
test.py patch defining a default getRequiredRPMs that returns an empy list.
Created attachment 382966 [details]
fvtest.py patch with getRequiredRPMs implementation
+ def getRequiredRPMs(self):
+ rpms = ["qemu", "libvirt", "libvirt-python", "python-virtinst"]
+ return rpms
+
Note that other tests may implement this function to do specific tests on hardware or RHEL configuration.
Actually, there's no need to the qemu package under xen, so the function should be: def getRequiredRPMs(self): rpms = ["libvirt", "libvirt-python", "python-virtinst"] if self.hypervisor == Constants.kvm: rpms.append('qemu') return rpms committed patches. Created attachment 383385 [details]
hardwaretest.py patch on R22 adding --mode auto support
In --mode auto, the required rpms are added automatically.
An advisory has been issued which should help the problem described in this bug report. This report is therefore being closed with a resolution of ERRATA. For more information on therefore solution and/or where to find the updated files, please follow the link below. You may reopen this bug report if the solution does not work for you. http://rhn.redhat.com/errata/RHBA-2010-0365.html |