Bug 295746 - need test for proper exit status for all command line tools
Summary: need test for proper exit status for all command line tools
Status: REOPENED
Alias: None
Product: RTSC (ARCHIVED)
Classification: Technology
Component: Tools (show other bugs)
Version: unspecified   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Joseph Cusano CLA
QA Contact:
URL:
Whiteboard: target:3.40
Keywords: test
Depends on:
Blocks:
 
Reported: 2009-11-20 12:25 EST by Dave Russo CLA
Modified: 2014-03-10 22:27 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Dave Russo CLA 2009-11-20 12:25:31 EST
The command line tools configuro, repoman, cdoc, and check all need to provide a non-zero exit status when they fail.
Comment 1 Joseph Cusano CLA 2010-02-16 12:41:12 EST
Call cmdr.error() on failure in check, path and repoman. Implemented in xdctools-d14.
Comment 2 Dave Russo CLA 2010-04-06 14:03:34 EDT
This bug is a request for regression tests that verify proper non-zero exit status for failures in the configuro, repoman, cdoc, path, and check commands.

IF it is possible to "prove" that errors/exceptions will always result in non-zero exit status (say because all ICmd based commands must return an exit status and ICmd ensures that the command's exit status is that which is returned by the core command), we can reject this bug.  Otherwise, we need regressions to manually check exit status.