Red Hat Bugzilla – Bug 810809
v7 tests result cannot be judged from its exit status
Last modified: 2015-02-08 16:38:01 EST
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:
Error: kernel is tainted (value = 536872960)
Return value was 1
saved to /var/v7/results.xml
# echo $?
0 <-- here it is
Version-Release number of selected component (if applicable):
$? always zero as long as tests end and not being terminated with abnormal errors such as backtrace.
$? represent various status: e.g.
0 - PASS
1 - normal FAIL
2 - abnormal FAIL (backtrace, ...)
Created attachment 576210 [details]
hardwaretest.py patch to return 1 if any test in the run fails
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.
A bug fix has been added in v7 1.5 that now v7 commands now return non-zero value if the command execution fails.
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.