Hide Forgot
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, ...)
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. 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.
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