zopectl always exits with status 0

Bug #143813 reported by Paul Winkler
2
Affects Status Importance Assigned to Milestone
Zope 2
Fix Released
Medium
Unassigned

Bug Description

bin/zopectl always exits with status 0, even when something is obviously wrong. This makes it less useful for scripting tasks. Examples:

pw@kermit $ ./bin/zopectl run nosuchfile
Traceback (most recent call last):
  File "<string>", line 1, in ?
IOError: [Errno 2] No such file or directory: 'nosuchfile'
pw@kermit $ echo $?
0
pw@kermit $ ./bin/zopectl test -m error
(SNIP)
  Ran 2 tests with 1 failures and 1 errors in 0.031 seconds.
pw@kermit contentservices_dev $ echo $?
0

Tags: bug zope
Revision history for this message
Paul Winkler (slinkp) wrote :

Fixed on trunk and the 2.11, 2.10, and 2.9 branches.
I updated doc/CHANGES.txt on the branches, but not the trunk.

Changed in zope2:
status: New → Fix Committed
Changed in zope2:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.