puppetlabs/puppet-acceptance — pull request #175 by pcarlisle (2012-03-21 22:22:08+00:00)
Title: Include failed command output in exceptions

If a command doesn't exit with an expected exit code, include the last ten
lines of its output in the exception formatted for display at the end of the
test run.

This also removes the useless "false is not true" errors.

I couldn't see the difference between the two failure cases in this method, they both end up raising an exception with the same string, so I merged them.