Bug 1023203

Summary: save command return value is non-zero on success
Product: [Retired] Red Hat Hardware Certification Program Reporter: Brian Brock <bbrock>
Component: Test Suite (harness)Assignee: Greg Nichols <gnichols>
Status: CLOSED EOL QA Contact: William Gomeringer <wgomerin>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 1.7CC: rlandry, wgomerin
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: hwcert-client 1.7.0-63 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
: 1032701 (view as bug list) Environment:
Last Closed: 2020-03-27 15:34:28 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Bug Depends On:    
Bug Blocks: 1016295    
Attachments:
Description Flags
backend.py patch to return success/failure of save command none

Description Brian Brock 2013-10-24 21:15:38 UTC
Description of problem:
info test has error in output, and `hwcert-backend save` will then fail.

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


How reproducible:


Steps to Reproduce:
1. install hwcert-client
2. run "plan"
3. run "run -t info"
4. observe

Actual results:
Your sosreport has been generated and saved in:
/var/tmp/sosreport-dell-pr7610-01.lab.bos.redhat.com-20131024170901.tar.xz
Copied sosreport --batch -n selinux /var/tmp/sosreport-dell-pr7610-01.lab.bos.redhat.com-20131024170901.tar.xz to /var/log/hwcert/runs/2/info
PASS
copying attachments...
checking directory /var/log/hwcert/runs/2/info
Skipping output.log
Adding /var/log/hwcert/runs/2/info/sosreport-dell-pr7610-01.lab.bos.redhat.com-20131024170901.tar.xz
copied attachment file sosreport-dell-pr7610-01.lab.bos.redhat.com-20131024170901.tar.xz
saveOutput: /var/log/hwcert/runs/2/info/output.log
Warning: could not merge output XML, reading as text file.
not well-formed (invalid token): line 348, column 15
Return value was 1


----
`hwcert-backend save` will subsequently fail:

$ hwc save
Saving current results to:
/var/hwcert/store/bbrock/Precision/Precision R7610/x86_64/RHEL/7/hwcert-results-dell-pr7610-01.lab.bos.redhat.com.xml.gz

Results stored on dell-pr7610-01.lab.bos.redhat.com,
 saving to hwcert.bos.devel.redhat.com:
There are no results files stored on this system.

$ echo $?
1


Expected results:
successful save

Additional info:

Comment 2 Brian Brock 2013-10-24 21:17:40 UTC
Possibly related to bug 1022749 and bug 1022752 on ppc64.

This bug is on a different system, x86_64.

Comment 5 Greg Nichols 2013-10-25 12:04:19 UTC
Created attachment 816126 [details]
backend.py patch to return success/failure of save command