Bug 459721
| Summary: | FEAT: save command for saving test results | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| 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: | low | Docs Contact: | |||||||||
| Priority: | medium | ||||||||||
| Version: | 5.2 | CC: | rlandry, tools-bugs, tyan, ykun | ||||||||
| 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: | 2009-01-27 22:57:50 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
2008-08-21 15:33:44 UTC
Overview: This preliminary implementation stores the results XML content in a directory structure intended to allow for storage of multiple tests of multiple hosts and RHEL version. The structure is as follows: /var/hts/store/<vendor>/<model>/<arch>/<OS name>/<OS version>/hts-results-<hosthame>-<time stamp of first run>.xml For example: /var/hts/store/IBM/23744WU/i686/Werewolf/8/hts-results-localhost.localdomain-20080718010346.xml Details: This patch adds hostname to the results XML under the "os" entity. This patch does not simply copy the results.xml file; if loads it, parsing from the current results.xml (typically /var/hts/results.xml) and writes a new XML file at the intended destination using HTS's existing code for saving test results to XML. This implementation was chosen because HTS needs meta-data in the results XML to be able to implement the destination naming structure, and also insures that the "saved" results correctly capture the intended test results. Created attachment 314718 [details]
patch for hts/hardwardwaretest.py
Created attachment 314719 [details]
hts/tags.py patch to add hostname keyword
Created attachment 314720 [details]
hts/certificationtest.py patch to get first test run timestamp
Please review looks roughly ok, though I don't think we've layed out exactly in detail what the requirements are to know this satisfies them or not, though likely this will do fine. Verified "hts save" command worked in hts-5.3-12, saved hts-result-*.xml to /vat/hts/store/. 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-2009-0047.html |