Bug 1023203 - save command return value is non-zero on success
Summary: save command return value is non-zero on success
Keywords:
Status: CLOSED EOL
Alias: None
Product: Red Hat Hardware Certification Program
Classification: Retired
Component: Test Suite (harness)
Version: 1.7
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: ---
Assignee: Greg Nichols
QA Contact: William Gomeringer
URL:
Whiteboard:
Depends On:
Blocks: 1016295
TreeView+ depends on / blocked
 
Reported: 2013-10-24 21:15 UTC by Brian Brock
Modified: 2020-03-27 15:34 UTC (History)
2 users (show)

Fixed In Version: hwcert-client 1.7.0-63
Clone Of:
: 1032701 (view as bug list)
Environment:
Last Closed: 2020-03-27 15:34:28 UTC
Embargoed:


Attachments (Terms of Use)
backend.py patch to return success/failure of save command (556 bytes, patch)
2013-10-25 12:04 UTC, Greg Nichols
no flags Details | Diff

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


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