Bug #58
Add 'show_stderr' to local() as per fabric's own fabfile.py
| Status: | Done | Start: | 09/12/2009 | |
| Priority: | Normal | Due date: | ||
| Assigned to: | - | % Done: | 0% |
|
| Category: | Operations | |||
| Target version: | 0.9 | |||
Description
As it says in the fabfile.py for fabric itself:
def test():
"""
Run all unit tests and doctests.
"""
# **Need show_stderr=True because the interesting output of nosetests is
# actually sent to stderr, not stdout.**
print(local('nosetests -sv --with-doctest', capture=False))
I'm using fabric in place of Paver, which seems broken on OS X 10.6, as a kind of project level makefile and not being to capture the “interesting output” of nosetests during an automated run of my unit tests is a real drag.
S
Associated revisions
Revision 88461f6f28eb378db5804d175f64029d850fd5f0
Remove out of date comment re #58
History
Updated by Jeff Forcier 359 days ago
Ugh, that’s an out of date comment (local used to not even print stderr, only stdout, IIRC.) Love those.
On master, local behaves slightly more like run/sudo and when capture is True, the returned string will exhibit a stderr attribute containing the standard error output. That should get you what you need, I hope.
On 0.9 you’re out of luck, local only captures stdout.
Either way, I’ll fix that comment — thanks for the catch!
Also available in: Atom