New top-level package: wrench

This package provides simple way for any part of Juju to check if a
"wrench should be dropped in the works" at some part of Juju's
execution. It checks $datadir/wrench for files which signal that
something should break, performing permission and error checking, and
logging.

The idea is that judicious calls to wrench.IsActive can be permanently
left in the code to aid manual and CI testing.
Disable wrench during test runs

Don't let stray wrench files that may be present on a developer's
system from uninentionally affecting behaviour during unit tests.
Merge pull request #508 from mjs/wrench

New top-level package: wrench

This tiny package provides simple way for any part of Juju to check if a "wrench should be dropped in the works" at some part of Juju's execution. It checks $datadir/wrench for files which signal that something should break, performing some error checking and logging.

The idea is that judicious calls to wrench.IsEnabled can be permanently left in the code to aid manual and CI testing.