mikeferguson/buildbot-ros — pull request #40 by jonbinney (2014-10-09 18:16:39+00:00)
Title: Fix crash that happened when commands failed

When cowbuilder_update imports testbuilder.py and calls functions in it, the global variable "workspace" isn't defined. This causes problems when a command fails, because the BuildException tries to cleanup the workspace. The failure to find the "workspace" variable masks the actual command failure.

There's probably some more extensive changes needed (workspace should probably be passed through all these functions), but this PR does the bare minimum fix so that the user sees what command fails in the traceback.