Bug 480723

Summary: HTS should verify all the arguments in command line
Product: [Retired] Red Hat Hardware Certification Program Reporter: Yolkfull Chow <yzhou>
Component: Test Suite (tests)Assignee: Greg Nichols <gnichols>
Status: CLOSED ERRATA QA Contact: Lawrence Lim <llim>
Severity: medium Docs Contact:
Priority: low    
Version: 5.3CC: nzhang, rlandry, tools-bugs, ykun
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Cause: ====== 'hts print plan' does not work properly Consequence: ============ a malfunction command Fix: ==== hardwaretest.py patch to verify all command-line args Result: ======= 'hts print plan' works properly
Story Points: ---
Clone Of: Environment:
Last Closed: 2009-08-27 16:34:37 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 Flags
hardwaretest.py patch to verify all command-line args none

Description Yolkfull Chow 2009-01-20 05:58:58 UTC
Description of problem:

After creating the test plan, issue 'hts print plan' will get the plan that shows what components will be tested. And then 'hts run -t $some_component' to run a test and after the test has been finished, issue 'hts print plan', it will print the full result differently. Actually, the third option in command 'hts print plan' is redundant and illegal thus the command 'hts print plan' should warn that it's a bad usage. So I think HTS test suite should verify all the options in command line.

Version-Release number of selected component (if applicable):
5.3-12

How reproducible:
Everytime

Steps to Reproduce:
1. hts plan
2. hts print plan
3. hts run -t $core
4. hts print plan

Actual results:
Illegal command 'hts print plan' doesn't return the usage. The third option in command 'hts print plan' is not verify.

Expected results:
Issue command 'hts print plan' should warn user that it's a bad usage.

Additional info:

Comment 1 Greg Nichols 2009-06-13 02:53:34 UTC
Created attachment 347696 [details]
hardwaretest.py patch to verify all command-line args

Comment 4 Nan Zhang 2009-08-13 09:53:42 UTC
Verified with v7-1.0-14.el5 on RHEL5u4-Server-i386, no issue found.

Comment 7 YangKun 2009-08-21 10:27:57 UTC
Release note added. If any revisions are required, please set the 
"requires_release_notes" flag to "?" and edit the "Release Notes" field accordingly.
All revisions will be proofread by the Engineering Content Services team.

New Contents:
Cause:
======
'hts print plan' does not work properly

Consequence:
============
a malfunction command

Fix:
====
hardwaretest.py patch to verify all command-line args  

Result:
=======
'hts print plan' works properly

Comment 8 errata-xmlrpc 2009-08-27 16:34:37 UTC
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-1234.html