Bug 810809 - v7 tests result cannot be judged from its exit status
Summary: v7 tests result cannot be judged from its exit status
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Hardware Certification Program
Classification: Retired
Component: Test Suite (harness)
Version: 1.5
Hardware: All
OS: Linux
urgent
low
Target Milestone: ---
: ---
Assignee: Greg Nichols
QA Contact: Zhiyou Liu
URL:
Whiteboard:
Depends On:
Blocks: 767775
TreeView+ depends on / blocked
 
Reported: 2012-04-09 09:05 UTC by Guangze Bai
Modified: 2015-02-08 21:38 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
A bug fix has been added in v7 1.5 that now v7 commands now return non-zero value if the command execution fails.
Clone Of:
Environment:
Last Closed: 2012-06-05 21:37:34 UTC
Embargoed:


Attachments (Terms of Use)
hardwaretest.py patch to return 1 if any test in the run fails (1.30 KB, patch)
2012-04-09 13:11 UTC, Greg Nichols
no flags Details | Diff


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2012:0711 0 normal SHIPPED_LIVE v7 bug fix and enhancement update 2012-06-06 01:26:37 UTC

Description Guangze Bai 2012-04-09 09:05:36 UTC
Description of problem:

Running v7 tests with FAIL result, as we can see what v7 says like "Return value was 1", but its exit status gives zero. For instance,

# modprobe bfa
# v7 run -t info
...
Subtest: Kernel - Check OS kernel build, version
Error: Tech-preview modules not in whitelist:
bfa
Error: kernel is tainted (value = 536872960)
FAIL
...
Return value was 1
saved to /var/v7/results.xml
# echo $?
0                     <-- here it is

Version-Release number of selected component (if applicable):
v7-1.5-18

How reproducible:
always

Actual results:
$? always zero as long as tests end and not being terminated with abnormal errors such as backtrace.

Expected results:
$? represent various status: e.g.
0 - PASS
1 - normal FAIL
2 - abnormal FAIL (backtrace, ...)

Comment 1 Greg Nichols 2012-04-09 13:11:35 UTC
Created attachment 576210 [details]
hardwaretest.py patch to return 1 if any test in the run fails

Comment 8 Caspar Zhang 2012-06-04 08:03:51 UTC
    Technical note added. If any revisions are required, please edit the "Technical Notes" field
    accordingly. All revisions will be proofread by the Engineering Content Services team.
    
    New Contents:
A bug fix has been added in v7 1.5 that now v7 commands now return non-zero value if the command execution fails.

Comment 10 errata-xmlrpc 2012-06-05 21:37:34 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

http://rhn.redhat.com/errata/RHBA-2012-0711.html


Note You need to log in before you can comment on or make changes to this bug.